Skip to main content
100%

dpka-ICE-7 Reusable D3 Scatter Plot

✓ Published0🌍 Public
DDeepikaGoud08
Last edited Mar 30, 2023
Created on Mar 30, 2023

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 description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes