4 <meta http-equiv=
"X-UA-Compatible" content=
"IE=EmulateIE7; IE=EmulateIE9">
5 <title>synchronize
</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>
15 <script type=
"text/javascript" src=
"data.js"></script>
16 <style type=
"text/css">
17 #div1 { position: absolute; left:
10px; top:
30px; }
18 #div2 { position: absolute; left:
520px; top:
30px; }
19 #div3 { position: absolute; left:
10px; top:
340px; }
20 #div4 { position: absolute; left:
520px; top:
340px; }
24 <p>Zooming and panning on any of the charts will zoom and pan all the
27 <div id=
"div1" style=
"width:500px; height:300px;"></div>
28 <div id=
"div2" style=
"width:500px; height:300px;"></div>
29 <div id=
"div3" style=
"width:500px; height:300px;"></div>
30 <div id=
"div4" style=
"width:500px; height:300px;"></div>
32 <script type=
"text/javascript">
34 var blockRedraw = false;
35 var initialized = false;
36 for (var i =
1; i <=
4; i++) {
39 document.getElementById(
"div" + i),
43 drawCallback: function(me, initial) {
44 if (blockRedraw || initial) return;
46 var range = me.xAxisRange();
47 var yrange = me.yAxisRange();
48 for (var j =
0; j <
4; j++) {
49 if (gs[j] == me) continue;
50 gs[j].updateOptions( {