Skip to main content
100%

Fork of Fork of Scatter Plot with Shape

✓ Published0🌍 Public
Pperamranji
Last edited Mar 30, 2025
Created on Mar 30, 2025

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
MIT Licensed

Similar vizzes