X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=gallery%2Fper-series.js;h=425043c576b0bdca9de44897f41bcc75ce4392be;hb=ca8c85838e6a98c17d7f62bb4e3f43e9244b1385;hp=49599644a58d897d97cb86437a1ecf6aae0ae57c;hpb=436943f9fee49b1f892480f04f0dc4d5abc5fca0;p=dygraphs.git diff --git a/gallery/per-series.js b/gallery/per-series.js index 4959964..425043c 100644 --- a/gallery/per-series.js +++ b/gallery/per-series.js @@ -1,3 +1,4 @@ +/*global Gallery,Dygraph,data */ Gallery.register( 'per-series', { @@ -7,7 +8,7 @@ Gallery.register( parent.innerHTML = "
"; }, run: function() { - g = new Dygraph( + new Dygraph( document.getElementById("demodiv"), function() { var zp = function(x) { if (x < 10) return "0"+x; else return x; }; @@ -24,20 +25,22 @@ Gallery.register( }, { strokeWidth: 2, - 'parabola': { - strokeWidth: 0.0, - drawPoints: true, - pointSize: 4, - highlightCircleSize: 6 - }, - 'line': { - strokeWidth: 1.0, - drawPoints: true, - pointSize: 1.5 - }, - 'sine wave': { - strokeWidth: 3, - highlightCircleSize: 10 + series: { + 'parabola': { + strokeWidth: 0.0, + drawPoints: true, + pointSize: 4, + highlightCircleSize: 6 + }, + 'line': { + strokeWidth: 1.0, + drawPoints: true, + pointSize: 1.5 + }, + 'sine wave': { + strokeWidth: 3, + highlightCircleSize: 10 + } } } );