🌍 Public
Fork of Reusable scatter plot with different symbols
NNeeharikaGali
Last edited Mar 25, 2023
Created on Mar 25, 2023
Forked from Reusable scatter plot with different symbols
This example displays the classic Iris dataset as a scatter plot, mapping petal width to the x-axis and sepal length to the y-axis, with each of the three species represented by a distinct symbol. The visualization is rendered as an SVG using D3 v6, leveraging a reusable `scatterPlot` module that employs `scaleLinear`, `scaleOrdinal`, `symbol`, and `axisLeft`/`axisBottom` APIs to position marks and axes. Data is loaded asynchronously from a CSV URL, and the plot fills the browser window, with axes labeled via D3's tick rendering.
AI-generated descriptionA vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.
MIT Licensed
Comments
Sign in to join the discussion.