d3 reusable scatter plot
✓ Published1🌍 Public
This interactive scatter plot displays the Iris dataset, mapping petal length to the x-axis and sepal length to the y-axis. Built with React and D3 v7, it uses `d3.csv` to load the data and `d3.scaleLinear`, `d3.axisLeft`, and `d3.axisBottom` for scales and axes. The visualization is rendered as SVG with circles whose positions are derived from the scales, and each point includes a `title` element for tooltip information. The chart is fully responsive, sizing to the window dimensions and allowing margins and radius to be configured via a reusable `scatterPlot` function.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed