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>
10 For production (minified) code, use:
11 <script type=
"text/javascript" src=
"dygraph-combined.js"></script>
13 <script type=
"text/javascript" src=
"../dygraph-dev.js"></script>
19 <input id='log'
type=
"button" value=
"log scale" onclick=
"setLogScale(true)">
20 <input id='linear'
type=
"button" value=
"linear scale" onclick=
"setLogScale(false)">
23 <h2>X axis of dates
</h2>
24 <div id=
"div_g0" style=
"width:600px; height:300px;"></div>
26 <h2>X axis of numbers
</h2>
27 <div id=
"div_g1" style=
"width:600px; height:300px;"></div>
29 <script type=
"text/javascript">
57 var g0 = new Dygraph(document.getElementById(
"div_g0"),
58 data0, { logscale : true });
59 var g1 = new Dygraph(document.getElementById(
"div_g1"),
60 data1, { logscale : true });
61 function setLogScale(val) {
62 g0.updateOptions({ logscale: val });
63 g1.updateOptions({ logscale: val });
64 document.getElementById(
"linear").disabled = !val;
65 document.getElementById(
"log").disabled = val;