Skip to main content
100%

Fork of ICE-7 Reusable scatter plot with different symbol

✓ Published0🌍 Public
NNeeharikaGali
Last edited Mar 25, 2023
Created on Mar 25, 2023

This fork of the ICE-7 reusable scatter plot visualizes the Iris dataset, mapping petal width against sepal length to reveal species clusters. It uses d3’s `scaleOrdinal` to assign distinct symbol shapes and colors (black, grey, pink) for each iris species. The code builds the chart with `scaleLinear`, `axisLeft`, and `axisBottom`, while `symbolGenerator` generates the mark paths. Data loads via a CSV URL, and the SVG renders with window-sized dimensions and custom margins, showing setosa, versicolor, and virginica points.

AI-generated description

A vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.

MIT Licensed

Similar vizzes