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