projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #161 from klausw-g/is-series-locked
[dygraphs.git]
/
dygraph.js
diff --git
a/dygraph.js
b/dygraph.js
index
9d58201
..
b81789b
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-1771,7
+1771,7
@@
Dygraph.prototype.mouseMove_ = function(event) {
var highlightSeriesOpts = this.attr_("highlightSeriesOpts");
var selectionChanged = false;
var highlightSeriesOpts = this.attr_("highlightSeriesOpts");
var selectionChanged = false;
- if (highlightSeriesOpts && !this.
lockedSet_
) {
+ if (highlightSeriesOpts && !this.
isSeriesLocked()
) {
var closest;
if (this.attr_("stackedGraph")) {
closest = this.findStackedPoint(canvasx, canvasy);
var closest;
if (this.attr_("stackedGraph")) {
closest = this.findStackedPoint(canvasx, canvasy);
@@
-2064,6
+2064,14
@@
Dygraph.prototype.getHighlightSeries = function() {
};
/**
};
/**
+ * Returns true if the currently-highlighted series was locked
+ * via setSelection(..., seriesName, true).
+ */
+Dygraph.prototype.isSeriesLocked = function() {
+ return this.lockedSet_;
+};
+
+/**
* Fires when there's data available to be graphed.
* @param {String} data Raw CSV data to be plotted
* @private
* Fires when there's data available to be graphed.
* @param {String} data Raw CSV data to be plotted
* @private