🌍 Public
Viewing a saved revision (read-only)
45b6034f7899419eab533bc3bb4d8be2
Fork of Fork of Scatter Plot with Shape
This example visualizes the Iris flower dataset as a scatter plot, mapping sepal length to the x-axis and petal length to the y-axis. Each point’s shape encodes the species using `d3.symbol` with a `scaleOrdinal` that draws from `symbolsFill`, and a custom legend displays the shape-to-species mapping. The code manages axes and labels through a dedicated `axes` module using `axisLeft` and `axisBottom`, while the plot renders data fetched as a CSV and parsed with `csvParse` before scaling values with `scaleLinear`.
AI-generated description