Skip to main content
100%

Reusable scatter plot

✓ Published0🌍 Public
KKiran Jyothi Bodduluri-11604571
Last edited Mar 11, 2023
Created on Mar 11, 2023

This example shows a reusable scatter plot of the Iris dataset, encoding petal width on the x-axis, sepal length on the y-axis, and species as symbol shapes. Built with D3.js, it uses a custom `scatterPlot` function that takes data, value accessors, and margin configuration, then renders SVG paths via the `symbol` and `symbols` APIs. It also applies `scaleLinear` for axes, `scaleOrdinal` for categorical mapping, and `axisLeft`/`axisBottom` for tick marks, with data parsed from a CSV URL.

AI-generated description
MIT Licensed

Similar vizzes