🌍 Public
Viewing a saved revision (read-only)
475ce20090a0427b811ce2cde72c18cd
Scatter Plot with Color Legend
This scatter plot visualizes the Iris flower dataset, mapping petal length on the x-axis, sepal width on the y-axis, and encoding species with color. Each point is rendered as an SVG circle using React components, with scales from `d3.scaleLinear` and `d3.scaleOrdinal`. The visualization includes axes built via `xScale.ticks()`, a color legend generated with `colorScale.domain()`, and tooltips using SVG `<title>` elements. Data is loaded asynchronously with `d3.csv` from a public gist.
AI-generated descriptionA program that shows the top 10 most populous countries as a bar chart.