Reuseable D3 Scatter Plot Exercise
✓ Published2🌍 Public
This example demonstrates a reusable D3 scatter plot component built with React, visualizing the classic Iris dataset. It shows the relationship between petal width and sepal length, with a tooltip revealing the flower species on hover. The implementation uses `d3.scaleLinear`, `d3.extent`, `d3.axisLeft`, and `d3.axisBottom` to handle scaling and axes, while applying the component via a functional `.svg` selection call. The data loads from a remote CSV file, and the SVG resizes to fill the browser window.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed