Skip to main content
Public

Share visualization

Loading preview…

Fork of Scatter Plot with Menus

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 Menus

0
Nnanegole
Last edited Oct 1, 2023
Created on Sep 25, 2023

This interactive scatter plot visualizes the Iris dataset, displaying measurements of sepal and petal dimensions for three flower species. The visualization includes dropdown menus that allow users to dynamically select which data columns are mapped to the X and Y axes, with the plot updating through D3 transitions. The code uses `d3.csv` to load the data, `scaleLinear` for axis scaling, and `axisBottom`/`axisLeft` for rendering axes. A D3 ordinal color scale distinguishes the species, with a legend showing the categorical mapping. The visualization is built with D3 v5, rendering SVG elements with animated circle transitions.

AI-generated description

This scatter plot shows data about cars, from UCI Machine Learning Repository: Auto MPG Data Set. The user can select which columns map to X and Y using dropdown menus.

Comments

Sign in to join the discussion.

MIT Licensed