🌍 Public
Viewing a saved revision (read-only)
e7f5c97fb0d84705974d54c491488bae
Scatter Plot with Color Legend
This scatter plot visualizes the iris dataset, showing the relationship between petal length and petal width, with points colored by species. The D3.js scaleLinear function maps the dimensions to the SVG canvas, while scaleOrdinal assigns categorical colors. The React-based code renders SVG circles as marks, with a custom ColorLegend displaying the species categories. Data is loaded from a CSV file using the d3.csv function.
AI-generated descriptionA scatter plot of the iris dataset