Skip to main content
Public

Share visualization

Loading preview…

creating a polished scatter plot with menus using iris data

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

creating a polished scatter plot with menus using iris data

0
Vvidhyanamini
Last edited Mar 5, 2022
Created on Mar 4, 2022

This interactive scatter plot displays the classic Iris dataset, letting users explore relationships between sepal and petal measurements. Two dropdown menus allow switching the x-axis and y-axis variables, while the scatter points update dynamically. The visualization uses React with hooks for state management, D3 v5 scales and SVG rendering for circles and axes. Data loads from a CSV via d3.csv, with axes formatted using d3.format and annotated with rotated axis labels.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed