🌍 Public
Fork of Reusable scatter plot for different styles
Ssnehareddygurram
Last edited Mar 22, 2023
Created on Mar 22, 2023
Forked from Reusable scatter plot with different symbols
This example demonstrates a reusable scatter plot visualizing the Iris dataset, with species distinguished by different D3 symbol shapes (circles, crosses, and diamonds). It maps petal width and sepal length to x/y positions using `d3.scaleLinear`, and uses `d3.scaleOrdinal` to assign symbols to species. The code employs `d3.axisLeft` and `d3.axisBottom` for axes, and renders the marks as SVG paths generated by `d3.symbol`. Data is loaded asynchronously via `d3.csv` from a GitHub gist.
AI-generated descriptionA vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.
MIT Licensed
Comments
Sign in to join the discussion.