block by jalapic 970631f431d54834a86a2c9eb97abb83

Linear Regression for Scatter Plot

Full Screen

Want to add a “trendline” to your d3.js scatter plot? You will have to calculate the linear regression of your data. I wrote a javascript function that does just that, based on this excellent tutorial.

forked from HarryStevens‘s block: Linear Regression for Scatter Plot

index.html

data.csv