Skip to main content
100%

Reusable Charts + symbol

✓ Published0🌍 Public
Aadventuresenglish.info@gmail.com
Last edited Dec 6, 2023
Created on Dec 6, 2023
Forked from Reusable Charts

This example demonstrates a reusable scatter plot built with D3 version 7, visualizing the classic Iris dataset. The chart encodes sepal length against petal width, with each species represented by a distinct symbol (circle, cross, diamond, etc.) and color-coded (blue, green, red) using `d3.scaleOrdinal` and `d3.symbol`. The code uses `d3.csv` to load data and a custom `scatterPlot` function with setters for dimensions, margins, and accessors. Axes are rendered via `d3.axisLeft` and `d3.axisBottom`, with the plot updating through `selection.join` for dynamic data binding.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes