Reusable scatter plot with different symbols
✓ Published0🌍 Public
TTharun Reddy
Last edited Mar 25, 2023
Created on Mar 23, 2023
Forked from Reusable scatter plot with different symbols
This example shows a reusable scatter plot of dog breed measurements, plotting female minimum height against male maximum height. The chart uses different D3 symbols to represent each breed, drawn as SVG paths via the `d3.symbol` API with a `scaleOrdinal` mapping symbols to data values. It uses `d3.csv` to load the dataset and `d3.scaleLinear` for axes, with `axisLeft` and `axisBottom` for the scales. The plot is built as a custom chart function with configurable accessors for x, y, symbol, and size, demonstrating a modular approach to D3 visualization.
AI-generated descriptionMIT Licensed