Skip to main content
100%

ICE-7: Reusable D3 Scatter Plot

✓ Published0🌍 Public
Ggunasindhuja
Last edited Mar 25, 2023
Created on Mar 25, 2023

This visualization presents the Iris Dataset in a reusable D3 scatter plot, cycling through four variable pairings every three seconds. Implemented as a custom `scatterPlot` function, it uses `d3.scaleLinear` for axes, `d3.scaleOrdinal` with `symbols` (cross, diamond, square) to distinguish species, and SVG paths for marks. The plot updates dynamically by changing the `xValue` accessor and re-invoking the chart, with axes redrawn via `d3.axisLeft` and `d3.axisBottom`. Animated transitions are absent; the interval simply triggers fresh renders.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes