Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot with Color Legend

Public visualization

Scatter Plot with Color Legend

0 stars1🌍 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

Comments

Sign in to join the discussion.

MIT Licensed