Skip to main content
100%

Flora's Scatter Plot with 1 .js

✓ Published0🌍 Public
Ffloraho401
Last edited Sep 19, 2023
Created on Sep 19, 2023

This example visualizes the classic Iris Dataset as a scatter plot, mapping sepal length to the x-axis, petal length to the y-axis, and species to color via an ordinal color scale. It features labeled axes and a custom color legend generated with D3’s `scaleOrdinal` and `schemeCategory10`. The data loads from a CSV file using `d3.csvParse`, while reusable modules handle axes, legends, and the plot itself, leveraging `selection.join` for efficient SVG updates.

AI-generated description

A scatter plot of the Iris Dataset with a color legend.

See also:

MIT Licensed

Similar vizzes