🌍 Public
Viewing a saved revision (read-only)
5812df456d1e4b209c380f3c98b27b0e
Linear regression with some fun interaction
A scatter plot displays the relationship between Microsoft and Walmart stock returns, overlaid with a linear regression line and its R-squared value. Users can click the plot background to add new data points, or click existing circles to remove them. The visualization uses D3.js v6 for SVG rendering, d3-regression for calculating the regression line, and loads its dataset from a remote CSV file.
AI-generated descriptionAdding and removing data from a scatter plot and regression line with clicks.