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
VVishwanath Hegde
Last edited Sep 22, 2021
Created on Sep 22, 2021

This example visualizes the classic Iris dataset, plotting petal length against sepal width for three flower species. Each point is a colored circle, with a legend mapping species to colors, and axis labels clearly identifying the measurements. The visualization uses a React component structure with D3 scales, including `scaleLinear` for axes and `scaleOrdinal` for the color mapping, rendering SVG elements through React. Data is loaded asynchronously via the D3 `csv` utility, and the legend and axes are composed from modular React components.

AI-generated description

A scatter plot of The Iris Dataset with color legend.

Comments

Sign in to join the discussion.

MIT Licensed