projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
push tags when doing a release
[dygraphs.git]
/
gallery
/
highlighted-series.js
diff --git
a/gallery/highlighted-series.js
b/gallery/highlighted-series.js
index
8cbe3c8
..
2fdd1cf
100644
(file)
--- a/
gallery/highlighted-series.js
+++ b/
gallery/highlighted-series.js
@@
-60,6
+60,14
@@
var makeGraph = function(className, numSeries, numRows, isStacked) {
highlightCircleSize: 5,
},
});
highlightCircleSize: 5,
},
});
+ var onclick = function(ev) {
+ if (g.isSeriesLocked()) {
+ g.clearSelection();
+ } else {
+ g.setSelection(g.getSelection(), g.getHighlightSeries(), true);
+ }
+ };
+ g.updateOptions({clickCallback: onclick}, true);
g.setSelection(false, 's005');
//console.log(g);
};
g.setSelection(false, 's005');
//console.log(g);
};