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">
58 var g0 = new Dygraph(document.getElementById(
"div_g0"),
59 data0, { logscale : true });
60 var g1 = new Dygraph(document.getElementById(
"div_g1"),
61 data1, { logscale : true });
62 function setLogScale(val) {
63 g0.updateOptions({ logscale: val });
64 g1.updateOptions({ logscale: val });
65 document.getElementById(
"linear").disabled = !val;
66 document.getElementById(
"log").disabled = val;