4 <title>log scale
</title>
6 <script type=
"text/javascript" src=
"../excanvas.js"></script>
8 <script type=
"text/javascript" src=
"../strftime/strftime-min.js"></script>
9 <script type=
"text/javascript" src=
"../rgbcolor/rgbcolor.js"></script>
10 <script type=
"text/javascript" src=
"../dygraph-canvas.js"></script>
11 <script type=
"text/javascript" src=
"../dygraph.js"></script>
16 <input id='log'
type=
"button" value=
"log scale" onclick=
"setLogScale(true)">
17 <input id='linear'
type=
"button" value=
"linear scale" onclick=
"setLogScale(false)">
20 <h2>X axis of dates
</h2>
21 <div id=
"div_g0" style=
"width:600px; height:300px;"></div>
23 <h2>X axis of numbers
</h2>
24 <div id=
"div_g1" style=
"width:600px; height:300px;"></div>
26 <script type=
"text/javascript">
54 var g0 = new Dygraph(document.getElementById(
"div_g0"),
55 data0, { logscale : true });
56 var g1 = new Dygraph(document.getElementById(
"div_g1"),
57 data1, { logscale : true });
58 function setLogScale(val) {
59 g0.updateOptions({ logscale: val });
60 g1.updateOptions({ logscale: val });
61 document.getElementById(
"linear").disabled = !val;
62 document.getElementById(
"log").disabled = val;