Skip to main content
100%

Reusable D3 Scatter Plot

✓ Published0🌍 Public
AArun Pratap
Last edited Jul 22, 2023
Created on Jul 22, 2023

This scatter plot demonstrates a reusable D3.js chart that visualizes the Iris dataset, mapping petal and sepal measurements on the x and y axes. The code uses d3.csv to load data, d3.scaleLinear for axes, and d3.scaleOrdinal for coloring points by species. A timer cycles through different column combinations every two seconds, producing an animated exploration of the dataset's four numeric attributes. SVG circles are rendered with interactive axes and a legend, following the design principles of Towards Reusable Charts.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes