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

0
PPratik Raja
Last edited Aug 13, 2024
Created on Aug 13, 2024

This scatter plot visualizes the Iris Dataset, showing petal length on the x-axis and sepal width on the y-axis. Each flower species is encoded by color, using a `d3.scaleOrdinal` color scale and a custom `ColorLegend` component to map species names to colors. The visualization is rendered as an SVG using React, with reusable components for axes and marks. Data is loaded asynchronously via the `d3.csv` function from a remote URL.

AI-generated description

A scatter plot of The Iris Dataset with color legend.

Comments

Sign in to join the discussion.

MIT Licensed