Skip to main content
100%

Reusable D3 Scatter Plot with symbols

✓ Published1🌍 Public
UUzoemeka Okechukwu Innocent
Last edited Aug 24, 2023
Created on Aug 24, 2023

This example presents a reusable scatter plot of the Iris dataset, where each flower species is represented by a distinct D3 symbol shape. The code uses `d3.scaleLinear` to map petal length and sepal length to x and y positions, `d3.scaleOrdinal` with `d3.symbols` to assign symbol types by species, and `d3.axisLeft` and `d3.axisBottom` for axes. Data is loaded as CSV via `d3.csv`, and the plot is rendered as SVG within a customizable margin.

AI-generated description

D3 Scatter Plot

Venilla HTML Implementation of a D3 Scatter Plot. Shows the iris Dataset,

MIT Licensed

Similar vizzes