Fork of Reusable scatter plot with different symbols
✓ Published0🌍 Public
SSANEEM MOHAMMAD
Last edited Mar 23, 2023
Created on Mar 23, 2023
Forked from Reusable scatter plot with different symbols
This example visualizes the Iris Dataset as an interactive scatter plot, mapping petal length and sepal width to the x and y axes while encoding species with distinct symbols. It uses a reusable D3 module pattern, with the `scatterPlot` function configuring scales, axes, and symbol generation. The code leverages `d3.scaleLinear`, `d3.scaleOrdinal`, `d3.symbol`, and `d3.axisBottom`/`axisLeft` to render SVG paths for each data point, sized at 100 pixels. The plot fills the window and fetches data from a GitHub Gist URL using `d3.csv`.
AI-generated descriptionA vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.
MIT Licensed