🌍 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 visualizes the Iris Dataset with a scatter plot that maps petal width to the x-axis, sepal length to the y-axis, and encodes the iris species using different symbols. Built with D3 v6, it uses `scaleLinear`, `scaleOrdinal`, `symbol`, and `axisLeft`/`axisBottom` to render SVG paths for the marks and axes. The plot fills the entire browser window, with margins adjusted for labels. The code is structured as a reusable `scatterPlot` function that accepts configuration for data, dimensions, and value selectors.
AI-generated descriptionA vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.
MIT Licensed
Comments
Sign in to join the discussion.