Skip to main content
100%

Reusable D3 Scatter Plot w/ symbols

✓ Published0🌍 Public
Ssyedhaliz
Last edited Mar 13, 2023
Created on Mar 13, 2023
Forked from D3 Starter

This example demonstrates a reusable D3 scatter plot that visualizes the Iris dataset, mapping petal length and sepal length on the x and y axes. Different Iris species are distinguished using D3 symbols (circles, crosses, diamonds, etc.) via `d3.symbol` and a `scaleOrdinal` mapping. The chart is built with an SVG rendering, utilizing `d3.csv` for data loading, `scaleLinear` for scales, and `axisLeft`/`axisBottom` for axes, while the chart’s dimensions, margins, and labels are configured through a custom reusable function pattern.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes