4 <meta http-equiv=
"X-UA-Compatible" content=
"IE=EmulateIE7; IE=EmulateIE9">
5 <title>log scale
</title>
7 <script type=
"text/javascript" src=
"../excanvas.js"></script>
9 <script type=
"text/javascript" src=
"../strftime/strftime-min.js"></script>
10 <script type=
"text/javascript" src=
"../rgbcolor/rgbcolor.js"></script>
11 <script type=
"text/javascript" src=
"../dygraph-canvas.js"></script>
12 <script type=
"text/javascript" src=
"../dygraph.js"></script>
17 <input id='log'
type=
"button" value=
"log scale" onclick=
"setLogScale(true)">
18 <input id='linear'
type=
"button" value=
"linear scale" onclick=
"setLogScale(false)">
21 <h2>X axis of dates
</h2>
22 <div id=
"div_g0" style=
"width:600px; height:300px;"></div>
24 <h2>X axis of numbers
</h2>
25 <div id=
"div_g1" style=
"width:600px; height:300px;"></div>
27 <script type=
"text/javascript">
55 var g0 = new Dygraph(document.getElementById(
"div_g0"),
56 data0, { logscale : true });
57 var g1 = new Dygraph(document.getElementById(
"div_g1"),
58 data1, { logscale : true });
59 function setLogScale(val) {
60 g0.updateOptions({ logscale: val });
61 g1.updateOptions({ logscale: val });
62 document.getElementById(
"linear").disabled = !val;
63 document.getElementById(
"log").disabled = val;