🌍 Public
scatterplot with menu
A scatterplot of the Iris flower dataset renders sepal and petal measurements as circles, with dropdown menus above the chart to select which numerical attribute appears on the x- and y-axes. The React app manages the selected attributes in state, and D3’s `scaleLinear`, `extent`, and `nice` compute the axes from the CSV data loaded via `d3.csv`. SVG circles and axis ticks are generated by React components, with hover tooltips supplied by SVG `<title>` elements.
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.