X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=gallery%2Fper-series.js;h=425043c576b0bdca9de44897f41bcc75ce4392be;hb=6eef8c1b9ec7b247ee2b508032bd3ec957d0fb68;hp=82fd5c9bf3021fdb3a1789eb6938ea69ca271315;hpb=fa5a85c4dd16f4d9607d784b3cd0ca8fb9878c76;p=dygraphs.git
diff --git a/gallery/per-series.js b/gallery/per-series.js
index 82fd5c9..425043c 100644
--- a/gallery/per-series.js
+++ b/gallery/per-series.js
@@ -1,4 +1,4 @@
-// Use this as a template for new Gallery entries.
+/*global Gallery,Dygraph,data */
Gallery.register(
'per-series',
{
@@ -8,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; };
@@ -25,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
+ }
}
}
);