4 name
: 'Interesting Shapes',
5 title
: 'The original demo!',
6 setup
: function(parent
) {
8 "<span style='font-size: small;'>(Mouse over to highlight individual values. Click and drag to zoom. Double-click to zoom out.)</span><br/>" +
10 "<div id='demodiv'></div>" +
11 "</td><td valign=top>" +
12 "<div id='status' style='width:200px; font-size:0.8em; padding-top:5px;'></div>" +
18 document
.getElementById("demodiv"),
20 var zp
= function(x
) { if (x
< 10) return "0"+x
; else return x
; };
21 var r
= "date,parabola,line,another line,sine wave\n";
22 for (var i
=1; i
<=31; i
++) {
23 r
+= "200610" + zp(i
);
24 r
+= "," + 10*(i
*(31-i
));
26 r
+= "," + 10*(250 - 8*i
);
27 r
+= "," + 10*(125 + 125 * Math
.sin(0.3*i
));
33 labelsDiv
: document
.getElementById('status'),
34 labelsSeparateLines
: true,
37 colors
: ["rgb(51,204,204)",
40 "rgba(50,50,200,0.4)"],
43 title
: 'Interesting Shapes',
46 axisLineColor
: 'white',