projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
got it!
[dygraphs.git]
/
dygraph-gviz.js
diff --git
a/dygraph-gviz.js
b/dygraph-gviz.js
index
b87fe80
..
114263a
100644
(file)
--- a/
dygraph-gviz.js
+++ b/
dygraph-gviz.js
@@
-67,14
+67,10
@@
Dygraph.GVizChart.prototype.getSelection = function() {
if (row < 0) return selection;
if (row < 0) return selection;
- var col = 1;
var datasets = this.date_graph.layout_.datasets;
var datasets = this.date_graph.layout_.datasets;
- for (var k in datasets) {
- if (!datasets.hasOwnProperty(k)) continue;
- selection.push({row: row, column: col});
- col++;
+ for (var setIdx = 0; setIdx < datasets.length; ++setIdx) {
+ selection.push({row: row, column: setIdx + 1});
}
return selection;
};
}
return selection;
};
-