4 <link rel=
"stylesheet" href=
"../css/dygraph.css">
6 <script type=
"text/javascript" src=
"../dist/dygraph.js"></script>
8 <style type=
"text/css">
14 border:
1px solid black;
23 border:
1px solid black;
34 <div class=
"chart" id=
"chart1"></div>
35 <div class=
"chart" id=
"chart2"></div>
36 <iframe id=
"iframe" width=
400 height=
520 src=
"http://en.wikipedia.org/">iframe here
</iframe>
38 <p>Click on various places in the chart, then drag the mouse over the iframe
39 and release it. When you mouse back over the charts, strange things shouldn't
42 <script type=
"text/javascript">
43 var data = function() {
44 var zp = function(x) { if (x <
10) return
"0"+x; else return x; };
45 var r =
"date,parabola,line,another line,sine wave\n";
46 for (var i=
1; i<=
31; i++) {
47 r +=
"200610" + zp(i);
48 r +=
"," +
10*(i*(
31-i));
50 r +=
"," +
10*(
250 -
8*i);
51 r +=
"," +
10*(
125 +
125 * Math.sin(
0.3*i));
58 document.getElementById(
"chart1"), data,
62 document.getElementById(
"chart2"), data,
64 showRangeSelector: true