scatter - interactive regression
This interactive scatter plot visualizes the Iris dataset, with points colored by species. A linear regression trendline is fitted to the data and updates dynamically as users hover over or select points. The visualization uses D3 v4 with SVG rendering, displaying sepal width against sepal length for three species. Users can interact with the plot to see how the regression line adjusts when data points are excluded, providing immediate feedback on the relationship between variables and the influence of individual points on the trendline. The regression calculation and line drawing are implemented in D3, with the JSON data embedded inline.
AI-generated descriptionBuilt with blockbuilder.org
Inspirations:
Plotting a trendline with d3js
Basic Data Update & Linear Regression
Linear Regression for Scatter Plot
This version has JSON data inline.
forked from <a href='http://bl.ocks.org/jalapic/'>jalapic</a>'s block: <a href='http://bl.ocks.org/jalapic/18b997f9b1025b21470d058b918421b9'>scatter - interactive regression</a>