dpka-ICE-7 Reusable D3 Scatter Plot
✓ Published0🌍 Public
This example presents an animated scatter plot of vehicle tire measurements from a CSV dataset, cycling through four column combinations as axes every two seconds. Built with D3 v6, it renders SVG shapes whose form and color encode the tire brand via `d3.scaleOrdinal` with `symbols` and a custom color array. The reusable chart pattern from Bostock’s “Towards Reusable Charts” exposes setter/getter functions, while `setInterval` triggers axis updates. It uses `d3.csv`, `scaleLinear`, `axisLeft`, and `axisBottom`, with data parsed as numeric fields before plotting.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.
MIT Licensed