Skip to main content
Public

Share visualization

Loading preview…

Fork of 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

Fork of Scatter Plot with Color Legend

0
YYedrup
Last edited Jan 30, 2021
Created on Jan 30, 2021

This visualization uses a scatter plot to explore the classic Iris Dataset, mapping petal length on the x-axis and sepal width on the y-axis, with points colored by species via an ordinal color scale and SVG circles. The chart includes custom React components for axes and a discrete color legend, built with d3.scaleLinear, d3.scaleOrdinal, and d3.extent for domain computation. The data is loaded asynchronously using d3.csv, and the SVG rendering is handled through React’s JSX syntax.

AI-generated description

A scatter plot of The Iris Dataset with color legend.

Comments

Sign in to join the discussion.

MIT Licensed