Sharanya ICE 7:Reusable D3 Scatter Plot
✓ Published1🌍 Public
This example shows a reusable D3 scatter plot of the Iris dataset, displaying the relationship between sepal length and petal width, with points colored by species. The x-axis automatically cycles through four numeric columns every 1.5 seconds, updating the axis label and circle positions via animation. Built with D3 v6, it uses `d3.csv` to load data, `scaleLinear` and `scaleOrdinal` for scales, and `axisBottom`/`axisLeft` for axes. The SVG rendering includes a legend and custom labels, all driven by a modular `scatterPlot` function with fluent setters.
AI-generated descriptionMIT Licensed