X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=gallery%2Fsynchronize.js;h=ae92efbbab204ee82849b09cecb31a76f056dfac;hb=335011fd4473f55aaaceb69726d15e0063373149;hp=8e1eb770f8d9e05f6e67c8d5e94c7f8d1bf5710f;hpb=e2a5e39886ea3bec49f24f937bb2625899710328;p=dygraphs.git diff --git a/gallery/synchronize.js b/gallery/synchronize.js index 8e1eb77..ae92efb 100644 --- a/gallery/synchronize.js +++ b/gallery/synchronize.js @@ -1,24 +1,25 @@ -// Use this as a template for new Gallery entries. +/*global Gallery,Dygraph,data */ +/*jshint loopfunc:true */ +/*global NoisyData */ Gallery.register( 'synchronize', { name: 'Synchronization', title: 'Multiple graphs in sync', setup: function(parent) { - parent.innerHTML = - "

Zooming and panning on any of the charts will zoom and pan all the" + - "others.

" + - "

" + - "" + - "" + - "" + - "" + - "
"; + parent.innerHTML = [ + "

Zooming and panning on any of the charts will zoom and pan all the", + "others.

", + "

", + "", + "", + "", + "", + "
"].join("\n"); }, run: function() { - gs = []; + var gs = []; var blockRedraw = false; - var initialized = false; for (var i = 1; i <= 4; i++) { gs.push( new Dygraph(