Skip to main content
Public

Share visualization

Loading preview…

Fork of Scatter Plot with Color

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

0
RRoberto
Last edited Sep 14, 2023
Created on Sep 14, 2023

This example visualizes the Iris dataset, mapping petal length and sepal width to the x and y axes of a scatter plot. Each point is colored by species, and hovering reveals a tooltip with the precise petal length. The visualization is built with React and rendered as an SVG, leveraging D3 v5 utilities such as `scaleLinear`, `scaleOrdinal`, and `extent` to compute scales and domains. Custom `Marks`, `AxisBottom`, and `AxisLeft` components generate the circles and axes, with data loaded asynchronously via `useData`.

AI-generated description

A scatter plot of The Iris Dataset.

Comments

Sign in to join the discussion.

MIT Licensed