🌍 Public
Viewing a saved revision (read-only)
40be24493ac24eeb8bc7270cd48f9290
react-d3-scatterplot
This example renders a scatter plot of the classic Iris dataset, mapping sepal length to the x-axis and sepal width to the y-axis. Built with React, it loads CSV data via d3.csv and uses d3.scaleLinear to construct the axes. SVG circles represent each data point, with a native title element providing hover tooltips. The code defines reusable components for axes and marks, and uses d3's extent and nice functions to set the scale domains.
AI-generated description