🌍 Public
Reusable chart
This interactive scatter plot visualizes the Iris flower dataset, mapping petal length against sepal length with points colored by species. The visualization is built using React and D3, employing a reusable chart pattern where a `scatterPlot` function generates the SVG rendering. The code uses D3's `csv` loader to fetch data, `scaleLinear` for axes, and `axisLeft`/`axisBottom` for tick marks. The chart connects D3 data joins with CSS classes for species-based color coding, demonstrating a modular approach to building configurable visualizations in React.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed
Comments
Sign in to join the discussion.