Skip to main content
100%

Reusable Scatter Plot

✓ Published0🌍 Public
Vvaddepallinaveen
Last edited Mar 27, 2022
Created on Mar 27, 2022

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 description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes