Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Reusable scatter plot for different styles

Public visualization

Fork of Reusable scatter plot for different styles

0 stars0🌍 Public
Ssnehareddygurram
Last edited Mar 22, 2023
Created on Mar 22, 2023

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 description

A vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.

Comments

Sign in to join the discussion.

MIT Licensed