Skip to main content
100%

Scatter Plot with Color Legend

✓ Published1🌍 Public
Nnpelliccia
Last edited Sep 14, 2021
Created on Sep 14, 2021

This scatter plot visualizes the iris dataset, showing the relationship between petal length and petal width, with points colored by species. The D3.js scaleLinear function maps the dimensions to the SVG canvas, while scaleOrdinal assigns categorical colors. The React-based code renders SVG circles as marks, with a custom ColorLegend displaying the species categories. Data is loaded from a CSV file using the d3.csv function.

AI-generated description

A scatter plot of the iris dataset

MIT Licensed

Similar vizzes