X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=gallery%2Fhighlighted-region.js;h=78955d63f039b2915b7ea3eea1d26c43c3f5c5ac;hb=8cc4108bdb0db5006d794be50d1bbca9558373e9;hp=4a13d1e8c050b9c4b46c77cf18dfa00b9da29dd9;hpb=c1f22b5a5d4ffbf25a75fc567232e65381c1938b;p=dygraphs.git diff --git a/gallery/highlighted-region.js b/gallery/highlighted-region.js index 4a13d1e..78955d6 100644 --- a/gallery/highlighted-region.js +++ b/gallery/highlighted-region.js @@ -1,12 +1,13 @@ +/*global Gallery,Dygraph,data */ Gallery.register( 'highlighted-region', { name: 'Highlighted Region', title: 'Draws a time series with an unusual region highlighted', setup: function(parent) { - parent.innerHTML = - "
" + - "

When you zoom and pan, the region remains highlighted.

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

When you zoom and pan, the region remains highlighted.

"].join("\n"); }, run: function() { // A basic sinusoidal data series. @@ -23,7 +24,7 @@ Gallery.register( data[i][2] += 5.0; } - var g = new Dygraph( + new Dygraph( document.getElementById("div_g"), data, {