Skip to main content
Public

Share visualization

Loading preview…

Scatter Plot with Colour

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 Colour

0 stars1Public
CChris Briggs
Last edited Nov 18, 2021
Created on Nov 18, 2021

This interactive scatter plot visualizes the Iris dataset, showing petal length against sepal width. Each of the 150 data points is rendered as a colored circle, with color encoding species type (setosa, versicolor, virginica) using a d3.scaleOrdinal with a categorical color range. Users can hover over any point to see its petal length value in a native browser tooltip. The visualization is built with React for component management and D3 v5 for scales, axes, and data loading via d3.csv, rendered as SVG with custom AxisBottom and AxisLeft components.

AI-generated description

A Scatter Plot based on Iris Data

Comments

Sign in to join the discussion.

MIT Licensed