- function logScale() {
- g.updateOptions({ logscale : true });
- }
- function linearScale() {
- g.updateOptions({ logscale : null });
+ var g0 = new Dygraph(document.getElementById("div_g0"),
+ data0, { logscale : true });
+ var g1 = new Dygraph(document.getElementById("div_g1"),
+ data1, { logscale : true });
+ function setLogScale(val) {
+ g0.updateOptions({ logscale: val });
+ g1.updateOptions({ logscale: val });
+ document.getElementById("linear").disabled = !val;
+ document.getElementById("log").disabled = val;