4 <meta http-equiv=
"X-UA-Compatible" content=
"IE=EmulateIE7; IE=EmulateIE9">
7 <script type=
"text/javascript" src=
"../excanvas.js"></script>
9 <script type=
"text/javascript" src=
"../dygraph-dev.js"></script>
11 <style type=
"text/css">
17 border:
1px solid black;
26 border:
1px solid black;
37 <div class=
"chart" id=
"chart1"></div>
38 <div class=
"chart" id=
"chart2"></div>
39 <iframe id=
"iframe" width=
400 height=
520 src=
"http://en.wikipedia.org/">iframe here
</iframe>
41 <p>Click on various places in the chart, then drag the mouse over the iframe
42 and release it. When you mouse back over the charts, strange things will
45 <script type=
"text/javascript">
46 var data = function() {
47 var zp = function(x) { if (x <
10) return
"0"+x; else return x; };
48 var r =
"date,parabola,line,another line,sine wave\n";
49 for (var i=
1; i<=
31; i++) {
50 r +=
"200610" + zp(i);
51 r +=
"," +
10*(i*(
31-i));
53 r +=
"," +
10*(
250 -
8*i);
54 r +=
"," +
10*(
125 +
125 * Math.sin(
0.3*i));
61 document.getElementById(
"chart1"), data,
65 document.getElementById(
"chart2"), data,
67 showRangeSelector: true