🌍 Public
5:53 Scatter Plot
This scatter plot displays the relationship between sepal length and sepal width in the classic Iris dataset, loaded via a CSV URL using D3's `csv` utility. The visualization is built with React, using SVG rendering and D3’s `scaleLinear` with `.nice()` to compute axis ranges. Each point is an SVG circle with a hover tooltip showing the x-value, formatted with D3’s `format` function. The axes are generated by custom React components, `AxisBottom` and `AxisLeft`, which map ticks and labels using the scales.
AI-generated descriptionA program that loads in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data.
MIT Licensed
Comments
Sign in to join the discussion.