Skip to main content
100%

reusable_Scatterplot_w_symbols

✓ Published0🌍 Public
Ppoppy
Last edited Jun 10, 2023
Created on Jun 10, 2023

This example visualizes the Iris dataset as a scatterplot, mapping petal length and sepal width to x and y axes, with each species distinguished by both color and symbol shape. It uses D3 v7 with the reusable `scatterPlot` module, which applies D3 scales, ordinal color and symbol scales, and SVG path generation. Axes are rendered with `axisLeft` and `axisBottom`, while the toggle function hides or shows the line layer. Data is loaded asynchronously from a CSV via `d3.csv`.

AI-generated description
MIT Licensed

Similar vizzes