Skip to main content
100%

Fork of Reusable scatter plot with different symbols

✓ Published0🌍 Public
Bbhanuteja1807@gmail.com
Last edited Mar 25, 2023
Created on Mar 25, 2023

This scatter plot displays the Iris dataset, plotting petal width against sepal length, with each species (setosa, versicolor, virginica) represented by a distinct symbol. The visualization is constructed as a reusable D3 function, `scatterPlot`, which uses `scaleLinear` for axes, `scaleOrdinal` to map species to symbol types via `symbols`, and `symbol().size()` to generate the marker paths. The `index.js` orchestrates loading CSV data with `csv`, parsing numeric fields, and applying the plot function to an SVG, while also adding custom axis labels and a title.

AI-generated description

A vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.

MIT Licensed

Similar vizzes