🌍 Public
Viewing a saved revision (read-only)
5e26d4ac9c6c41bbaebc33a64c86ba7b
another one
This example shows a scatter plot of the Iris dataset, mapping sepal length on the x-axis and sepal width on the y-axis, with each flower as a circle. It uses React with D3.js (v5) to render an SVG, employing `scaleLinear` for both axes, `extent` to set domains, and `scaleOrdinal` (unused for coloring here). The CSV data is loaded via `d3.csv` and parsed into numbers, with axes drawn using custom `AxisBottom` and `AxisLeft` components that generate ticks and grid lines.
AI-generated descriptionA scatter plot of Iris dataset The Iris Dataset