Fork of Reusable scatter plot with different symbols
✓ Published0🌍 Public
BBala Sai Krishna
Last edited Mar 12, 2023
Created on Mar 12, 2023
Forked from Reusable scatter plot with different symbols
This scatter plot visualizes the Iris Dataset, mapping petal width to the x-axis and sepal length to the y-axis. Each data point uses a distinct D3 symbol—circle, cross, diamond, square, star, triangle, or wye—determined by the iris species through a `scaleOrdinal` and the `symbol` generator. The visualization is rendered as SVG using D3 version 6.7.0, with axes created via `axisBottom` and `axisLeft`. The code is organized as a reusable `scatterPlot` function, accepting configurable accessor functions and margin settings, and loads data from a GitHub Gist using `d3.csv`.
AI-generated descriptionA vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.
MIT Licensed