projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Feature Request] Provide option to set color and width for annotation line (#703)
[dygraphs.git]
/
gallery
/
highlighted-series.js
diff --git
a/gallery/highlighted-series.js
b/gallery/highlighted-series.js
index
8cbe3c8
..
5e97bca
100644
(file)
--- a/
gallery/highlighted-series.js
+++ b/
gallery/highlighted-series.js
@@
-1,3
+1,4
@@
+/*global Gallery,Dygraph,data */
Gallery.register(
'highlighted-series',
{
Gallery.register(
'highlighted-series',
{
@@
-57,9
+58,17
@@
var makeGraph = function(className, numSeries, numRows, isStacked) {
highlightSeriesOpts: {
strokeWidth: 3,
strokeBorderWidth: 1,
highlightSeriesOpts: {
strokeWidth: 3,
strokeBorderWidth: 1,
- 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);
};