Reusable D3 Scatter Plot ICE 7
✓ Published0🌍 Public
This interactive scatter plot visualizes the Iris flower dataset, encoding petal width, sepal length, sepal width, and petal length across the x and y axes. The code uses D3 v6 with a reusable `scatterPlot` module, employing `scaleLinear` for axes, `scaleOrdinal` for symbols, and `symbolGenerator` for markers. An animated `setInterval` cycles through different column pairs every second, while colors distinguish species. The SVG rendering includes axes via `axisLeft` and `axisBottom`, with a legend and title overlaid on screen.
AI-generated descriptionMIT Licensed