🌍 Public
Scatter Plot with Color
This example visualizes the Iris dataset as a scatter plot, mapping petal length to the x-axis, sepal width to the y-axis, and coloring each circle by species using a D3 ordinal scale. React renders the SVG, with reusable axis and mark components built on D3 scales like `scaleLinear` and `scaleOrdinal`. The data is loaded from a remote CSV via D3’s `csv` utility, and tooltips display formatted values through SVG `<title>` elements.
AI-generated descriptionA program that loads in some data about CSS named colors using D3 utilities, and uses React state to render the data.
MIT Licensed
Comments
Sign in to join the discussion.