ice-7 resuable scatter plot
✓ Published0🌍 Public
This example visualizes the Iris dataset, plotting petal length against petal width. Each point is colored by species (setosa, versicolor, or virginica) using a simple switch statement, and the circle’s horizontal and vertical radii are set to the sepal length and width values, respectively. Built with React and D3 v6, it uses the `csv`, `select`, `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` functions to load data, create scales, and render SVG axes and circles. The chart fills the browser window, with large tick text and axis labels for clarity.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed