Skip to main content
Public

Share visualization

Loading preview…

Fork of Scatter Plot with Color - Correct Version

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 - Correct Version

0
BBen Brophy
Last edited Jan 3, 2022
Created on Jan 3, 2022

This example displays the classic Iris dataset as a scatter plot of petal length versus sepal width, with points colored by species. The visualization uses SVG rendering within a React application, leveraging d3-scale functions like `scaleLinear` and `scaleOrdinal` for positioning and color encoding. Axis components are built with `d3.ticks` to generate tick marks, while the data is loaded asynchronously via `d3.csv` from a GitHub gist. The code also includes custom formatting with `d3.format` for the bottom axis labels.

AI-generated description

A scatter plot of The Iris Dataset.

Comments

Sign in to join the discussion.

MIT Licensed