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
AAnthony Le
Last edited Aug 18, 2024
Created on Aug 18, 2024

This interactive scatter plot visualizes the Iris Dataset, mapping petal length and sepal width for each sample, with points colored by species using a D3 scaleOrdinal color scale. The visualization is built with React, using D3.forscaleLinear for positioning axes and marks, and renders to SVG. A custom color legend displays the three species, and hovering over a point reveals its petal length via a tooltip. The code imports D3 utilities like `csv`, `scaleLinear`, `scaleOrdinal`, and `format` to load data and manage scales.

AI-generated description

A scatter plot of The Iris Dataset with color legend.

Comments

Sign in to join the discussion.

MIT Licensed