Reusable Scatter Plot
✓ Published0🌍 Public
This example presents a reusable scatter plot that visualizes the Iris Dataset, toggling between different measurement combinations every 1.8 seconds. It demonstrates the “Towards Reusable Charts” pattern using d3.scaleLinear, d3.extent, and d3.axisLeft/axisBottom within a custom scatterPlot function. SVG circles are colored by species, with axis labels and a fixed plot margin. The implementation uses D3 v6 modules (csv loading, selection, and joins) to render animated transitions between views.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.
MIT Licensed