5 <script type=
"text/javascript" src=
"../dygraph-dev.js"></script>
7 <style type=
"text/css">
13 border:
1px solid black;
22 border:
1px solid black;
33 <div class=
"chart" id=
"chart1"></div>
34 <div class=
"chart" id=
"chart2"></div>
35 <iframe id=
"iframe" width=
400 height=
520 src=
"http://en.wikipedia.org/">iframe here
</iframe>
37 <p>Click on various places in the chart, then drag the mouse over the iframe
38 and release it. When you mouse back over the charts, strange things will
41 <script type=
"text/javascript">
42 var data = function() {
43 var zp = function(x) { if (x <
10) return
"0"+x; else return x; };
44 var r =
"date,parabola,line,another line,sine wave\n";
45 for (var i=
1; i<=
31; i++) {
46 r +=
"200610" + zp(i);
47 r +=
"," +
10*(i*(
31-i));
49 r +=
"," +
10*(
250 -
8*i);
50 r +=
"," +
10*(
125 +
125 * Math.sin(
0.3*i));
57 document.getElementById(
"chart1"), data,
61 document.getElementById(
"chart2"), data,
63 showRangeSelector: true