Reusable scatter plot with different symbols
✓ Published0🌍 Public
NNithish Kumar
Last edited Mar 13, 2023
Created on Mar 12, 2023
Forked from Reusable scatter plot with different symbols
This example presents a reusable scatter plot of the Iris Dataset, encoding sepal length against petal width. Each species is visually distinguished by a different D3 symbol, with axes scaled using `d3.scaleLinear`. The plot is built as a custom charting function that chains configurable accessors for data, dimensions, and margins. It leverages `d3.scaleOrdinal` to map species to `d3.symbols`, and renders SVG paths via `d3.symbol` and the `d3.axisBottom` and `d3.axisLeft` components.
AI-generated descriptionA vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.
MIT Licensed