Skip to main content
100%

NiteeshSama ICE-7: Reusable D3 Scatter Plot

✓ Published0🌍 Public
NNitheeshSama
Last edited Mar 26, 2023
Created on Mar 26, 2023

This example presents a reusable scatter plot of the Iris dataset, cycling through different x-axis variables (petal width, sepal width, petal length, sepal length) every second. Built with D3 v6 and the reusable chart pattern from Mike Bostock, it renders SVG symbols scaled by sepal width and petal length, colored by species. The visualization uses `d3.scaleLinear`, `d3.scaleOrdinal`, `d3.axisLeft`, `d3.axisBottom`, and `d3.symbol` to generate marks, with axes and data updated via a `setInterval` loop.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes