X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=gallery%2Fstyled-chart-labels.js;h=0268f6dcd41e74196f5021188bf7259e2392e6d2;hb=3b196163552cb25ae554ac48a20fe3131bee5dd1;hp=61395268d89db453038b0282c7f7489cdfec480c;hpb=e14dc3feda3e6d429bb953dab83c593d851d90af;p=dygraphs.git diff --git a/gallery/styled-chart-labels.js b/gallery/styled-chart-labels.js index 6139526..0268f6d 100644 --- a/gallery/styled-chart-labels.js +++ b/gallery/styled-chart-labels.js @@ -1,17 +1,18 @@ +/*global Gallery,Dygraph,data */ Gallery.register( 'styled-chart-labels', { name: 'CSS label styling', title: 'Each chart label is styled independently with CSS', setup: function(parent) { - parent.innerHTML = - "

This chart's labels are styled

" + - "
" + - "

This version of the chart uses the default styles:

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

This chart's labels are styled

", + "
", + "

This version of the chart uses the default styles:

", + "
"].join("\n"); }, run: function() { - g = new Dygraph( + new Dygraph( document.getElementById("div_g"), data, { rollPeriod: 7, @@ -28,7 +29,7 @@ Gallery.register( } ); - g2 = new Dygraph( + new Dygraph( document.getElementById("div_g2"), data, { rollPeriod: 30,