Skip to main content
Public

Share visualization

Loading preview…

Scatter Plot with Color Legend

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Scatter Plot with Color Legend

1
RRudy Shayganfar
Last edited Oct 14, 2020
Created on Oct 14, 2020

A scatter plot of the Iris Dataset displays petal length (x-axis) against sepal width (y-axis), with each species represented by a distinct color and a custom legend of colored circles. Built with React and D3 v5, the visualization uses `d3.scaleLinear` for axes, `d3.scaleOrdinal` for colors, and SVG rendering with reusable React components for axes, marks, and the legend. Data is loaded asynchronously via `d3.csv` from the remote iris.csv file.

AI-generated description

A scatter plot of The Iris Dataset.

This plot was made by forking Scatter Plot with Color and modifying based on the CS573 Week 7 video "Making a Color Legend".

Comments

Sign in to join the discussion.

MIT Licensed