🌍 Public
Viewing a saved revision (read-only)
2c99e2a8b21c4c13a921b1b8747fa0a0
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