Skip to main content
100%

Reusable D3 Scatter Plot with Symbols

✓ Published0🌍 Public
Wwspwll@gmail.com
Last edited Jul 18, 2024
Created on Jul 18, 2024

This reusable D3 scatter plot visualizes the Iris dataset by mapping petal length and sepal length along the x and y axes, with species encoded through distinct symbols. Built with D3 v7, it uses `scaleLinear` for axes, `scaleOrdinal` with `symbols` and `symbol` to render marks as SVG paths, and `axisLeft`/`axisBottom` for the chart framework. The `scatterPlot` function is configurable via chained setters for width, height, data, and margins, ingesting CSV data through `csv` and rendering in an SVG container.

AI-generated description
MIT Licensed

Similar vizzes