Skip to main content
Public

Share visualization

Loading preview…

[VizStudy]Week7: 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

[VizStudy]Week7: Scatter plot with color legend

0
Hhotdoujiang
Last edited Oct 28, 2019
Created on Oct 28, 2019

This interactive scatter plot visualizes the Iris Dataset, plotting petal length against sepal width to reveal species clusters. The visualization uses d3.scaleLinear for axes and d3.scaleOrdinal with a three-color palette to distinguish Iris species. Built with React and rendered as SVG, the plot encodes species through color, with each circle representing a flower sample. Hovering over a point displays its precise value via an SVG title tooltip. The code imports functions like useData for CSV loading and uses d3's extent for domain calculation, with axis labels styled using the Poppins font.

AI-generated description

A scatter plot of The Iris Dataset.

Data Visualization study followin Curran.

Comments

Sign in to join the discussion.

MIT Licensed