<tr><td>
<b>No interaction model</b>
<div id="div_g2" style="width:600px; height:300px;"></div>
- </td><td>Click and drag all you like, it won't do anything!</td></tr>
+ </td><td>Click and drag all you like, it won't do anything!
+ <div id="g2_console"></div>
+ </td></tr>
<tr><td>
<b>Custom interaction model</b>
Dygraph.addEvent(document, "click", function() { lastClickedGraph = null; });
var g = new Dygraph(document.getElementById("div_g"),
NoisyData, { errorBars : true });
+ var s = document.getElementById("g2_console");
var g2 = new Dygraph(document.getElementById("div_g2"),
- NoisyData, { errorBars : true, interactionModel : {} });
+ NoisyData,
+ {
+ errorBars : true,
+ interactionModel: {}
+ });
var g3 = new Dygraph(document.getElementById("div_g3"),
NoisyData, { errorBars : true, interactionModel : {
'mousedown' : downV3,