Raga Scatter Plot with Shape
✓ Published1🌍 Public
This example presents a scatter plot of the Iris dataset, comparing petal length against sepal length. Each data point is rendered as a distinct shape, with the species of the flower determining the symbol type. The visualization includes axis labels for “Sepal Length” and “Petal Length,” alongside a legend that maps the three species to their respective shapes. The chart is built using D3 v7, employing `scaleLinear` for the x and y axes, `scaleOrdinal` for the shape mapping, and a custom legend created with `symbol`. The data is loaded from a remote CSV URL and parsed using `csvParse`.
AI-generated descriptionMIT Licensed