X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=gallery%2Fsynchronize.js;h=fbf791fe93675849f430df0e5bb7dbd929b048a0;hb=2ed3480b3d067f380abf6636cb984ac9ff7cd484;hp=8e1eb770f8d9e05f6e67c8d5e94c7f8d1bf5710f;hpb=e2a5e39886ea3bec49f24f937bb2625899710328;p=dygraphs.git diff --git a/gallery/synchronize.js b/gallery/synchronize.js index 8e1eb77..fbf791f 100644 --- a/gallery/synchronize.js +++ b/gallery/synchronize.js @@ -1,24 +1,22 @@ -// Use this as a template for new Gallery entries. 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 blockRedraw = false; - var initialized = false; for (var i = 1; i <= 4; i++) { gs.push( new Dygraph(