Skip to main content
100%

Scatter Plot with Different Markers for Different Groups

✓ Published0🌍 Public
HHARSHA BUDDANA
Last edited Mar 13, 2023
Created on Mar 12, 2023
Forked from Hello VizHub

This scatter plot displays the Iris dataset by plotting PetalLengthCm against PetalWidthCm, with each species (setosa, versicolor, and virginica) rendered using a distinct SVG symbol—circle, star, and diamond respectively—via d3.symbol types. The visualization uses D3 v6 to load CSV data, apply linear scales for axes, and generate the SVG scatter plot. While the primary axes map petal dimensions, the code also reads sepal measurements into the mark data, though it does not use them for positioning. The plot fills the full browser window with a responsive SVG canvas.

AI-generated description
MIT Licensed

Similar vizzes