projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
REFACTORING: cleaned up code and style for new grid per axis feature.
[dygraphs.git]
/
tests
/
plotter.html
diff --git
a/tests/plotter.html
b/tests/plotter.html
index
58054b8
..
c2f0b81
100644
(file)
--- a/
tests/plotter.html
+++ b/
tests/plotter.html
@@
-38,7
+38,18
@@
data.push(row);
}
data.push(row);
}
- g = new Dygraph(graph, data);
+ var labels = ['X'];
+ if (data[0].length == 2) {
+ labels.push('Y');
+ } else {
+ for (var i = 1; i < data[0].length; i++) {
+ labels.push('Y' + (1 + i));
+ }
+ }
+
+ g = new Dygraph(graph, data, {
+ labels: labels
+ });
}
function preset() {
}
function preset() {