X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=gallery%2Flinear-regression.js;h=f381e4cb33d7f4f5c57e6cb63b8f451634b2bc1e;hb=0673f7c46a068308743a73c2cc92876108c8336b;hp=0a93b8f85bf5c590c41536454338e0b0de8797a7;hpb=3c10a0f3519355ee651d04bf2972bd31298eff18;p=dygraphs.git diff --git a/gallery/linear-regression.js b/gallery/linear-regression.js index 0a93b8f..f381e4c 100644 --- a/gallery/linear-regression.js +++ b/gallery/linear-regression.js @@ -1,21 +1,20 @@ -// Use this as a template for new Gallery entries. Gallery.register( 'linear-regression', { name: 'Linear Regressions', title: 'Linear Regression Demo', setup: function(parent) { - parent.innerHTML = - "

Click the buttons to generate linear regressions over either data "+ - "series. If you zoom in and then click the regression button, the regression "+ - "will only be run over visible points. Zoom back out to see what the local "+ - "regression looks like over the full data.

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

Click the buttons to generate linear regressions over either data ", + "series. If you zoom in and then click the regression button, the regression ", + "will only be run over visible points. Zoom back out to see what the local ", + "regression looks like over the full data.

", + "
", + "
", + " ", + " ", + "", + "
"].join("\n"); }, run: function() { document.getElementById("ry1").onclick = function() { regression(1) };