projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bug 415. Series must be specicied by name in the options object.
[dygraphs.git]
/
tests
/
two-axes.html
diff --git
a/tests/two-axes.html
b/tests/two-axes.html
index
d1c876b
..
3f40b07
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,8
+41,6
@@
data,
{
labels: [ 'Date', 'Y1', 'Y2', 'Y3', 'Y4' ],
data,
{
labels: [ 'Date', 'Y1', 'Y2', 'Y3', 'Y4' ],
- width: 640,
- height: 350,
'Y3': {
axis: {
}
'Y3': {
axis: {
}
@@
-55,7
+53,10
@@
// set axis-related properties here
labelsKMB: true
}
// set axis-related properties here
labelsKMB: true
}
- }
+ },
+ ylabel: 'Primary y-axis',
+ y2label: 'Secondary y-axis',
+ yAxisLabelWidth: 60
}
);
}
);
@@
-64,9
+65,9
@@
data,
{
labels: [ 'Date', 'Y1', 'Y2', 'Y3', 'Y4' ],
data,
{
labels: [ 'Date', 'Y1', 'Y2', 'Y3', 'Y4' ],
-
width: 640
,
-
height: 350
,
- labelsKMB: true
+
labelsKMB: true
,
+
ylabel: 'Primary y-axis'
,
+ y2label: 'Secondary y-axis',
}
);
}
);