projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Document each parameter of valueFormatter
[dygraphs.git]
/
tests
/
plotter.html
diff --git
a/tests/plotter.html
b/tests/plotter.html
index
58054b8
..
e9af285
100644
(file)
--- a/
tests/plotter.html
+++ b/
tests/plotter.html
@@
-1,11
+1,7
@@
<!DOCTYPE html>
<html>
<head>
<!DOCTYPE html>
<html>
<head>
- <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
<title>dygraphs Equation Plotter</title>
<title>dygraphs Equation Plotter</title>
- <!--[if IE]>
- <script type="text/javascript" src="../excanvas.js"></script>
- <![endif]-->
<!--
For production (minified) code, use:
<script type="text/javascript" src="dygraph-combined.js"></script>
<!--
For production (minified) code, use:
<script type="text/javascript" src="dygraph-combined.js"></script>
@@
-38,7
+34,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() {