projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for animated zooms.
[dygraphs.git]
/
tests
/
two-axes.html
diff --git
a/tests/two-axes.html
b/tests/two-axes.html
index
ad24648
..
834fd2f
100644
(file)
--- a/
tests/two-axes.html
+++ b/
tests/two-axes.html
@@
-16,9
+16,9
@@
<body>
<h2>Multiple y-axes</h2>
<p>The same data with both one and two y-axes. Two y-axes:</p>
<body>
<h2>Multiple y-axes</h2>
<p>The same data with both one and two y-axes. Two y-axes:</p>
- <div id="demodiv"></div>
+ <div id="demodiv"
style="width: 640; height: 350; border: 1px solid black"
></div>
<p>A single y-axis:</p>
<p>A single y-axis:</p>
- <div id="demodiv_one"></div>
+ <div id="demodiv_one"
style="width: 640; height: 350; border: 1px solid black"
></div>
<script type="text/javascript">
var data = [];
<script type="text/javascript">
var data = [];
@@
-41,16
+41,18
@@
data,
{
labels: [ 'Date', 'Y1', 'Y2', 'Y3', 'Y4' ],
data,
{
labels: [ 'Date', 'Y1', 'Y2', 'Y3', 'Y4' ],
- width: 640,
- height: 350,
'Y3': {
axis: {
'Y3': {
axis: {
- // set axis-related properties here
- labelsKMB: true
}
},
'Y4': {
axis: 'Y3' // use the same y-axis as series Y3
}
},
'Y4': {
axis: 'Y3' // use the same y-axis as series Y3
+ },
+ axes: {
+ y2: {
+ // set axis-related properties here
+ labelsKMB: true
+ }
}
}
);
}
}
);
@@
-60,8
+62,6
@@
data,
{
labels: [ 'Date', 'Y1', 'Y2', 'Y3', 'Y4' ],
data,
{
labels: [ 'Date', 'Y1', 'Y2', 'Y3', 'Y4' ],
- width: 640,
- height: 350,
labelsKMB: true
}
);
labelsKMB: true
}
);