XXX broken, needs updating to Dygraphs 2 API

Linear Regression Demo

Click the buttons to generate linear regressions over either data series. If you zoom in and 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.