X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=gallery%2Fhighlighted-region.js;h=78955d63f039b2915b7ea3eea1d26c43c3f5c5ac;hb=59ee387ba6d5113ceedba2b16b1c0c53ddfa072c;hp=4a13d1e8c050b9c4b46c77cf18dfa00b9da29dd9;hpb=795b16307db2a673ba7aa3452f6f6b0e93baeb3a;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, {