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
SSandyWu7179290504
Last edited Oct 1, 2022
Created on Oct 1, 2022

This scatter plot visualizes the Iris dataset, mapping petal length and sepal width along the x and y axes while coloring each point by species. The visualization includes an interactive color legend on the right side, allowing viewers to distinguish between the three iris species. Built with React and D3 v5, the chart uses d3.scaleLinear for the axes and d3.scaleOrdinal for color encoding. Native SVG elements render the circles and legend, with d3.csv loading the dataset and reusable components managing axis and mark rendering.

AI-generated description

A scatter plot of The Iris Dataset with color legend.

Comments

Sign in to join the discussion.

MIT Licensed