🌍 Public
Fork of Reusable scatter plot with different symbols
Ggeethanjalikotaru
Last edited Mar 25, 2023
Created on Mar 25, 2023
Forked from Reusable scatter plot with different symbols
This example visualizes the Iris dataset as a scatter plot, mapping petal width and sepal length to the x and y axes. Each of the three iris species is represented by a distinct symbol from D3’s `symbol` and `symbols` APIs, with positions scaled using `scaleLinear` and axes drawn via `axisLeft` and `axisBottom`. The chart is built with a reusable `scatterPlot` function in D3 v6, rendering SVG shapes whose paths are generated by `symbolGenerator`, and loaded asynchronously from a CSV URL.
AI-generated descriptionA vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.
MIT Licensed
Comments
Sign in to join the discussion.