X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=gallery%2Fstock.js;h=4c6af6d4740855daffa11b0c88e25231aee3d1ef;hb=f93af875f34cdc7ed523f2545103ef6d6f4a1891;hp=0cee3fb26ed7cf8ddf86b42db7225068fff7ecb1;hpb=60bda09c058d85b1fad278ac4ce6df353e0a9275;p=dygraphs.git diff --git a/gallery/stock.js b/gallery/stock.js index 0cee3fb..4c6af6d 100644 --- a/gallery/stock.js +++ b/gallery/stock.js @@ -4,11 +4,12 @@ Gallery.register( name: 'Stock Chart Demo', title: 'Stock Chart Demo', setup: function(parent) { - parent.innerHTML = "

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

", + "
", + "  ", + " ", + "
"].join("\n"); }, run: function() { var g = new Dygraph(document.getElementById("stock_div"), stockData,