Skip to main content
Public

Share visualization

Loading preview…

Activity7.1_Tutorial

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

Activity7.1_Tutorial

0
Vvidyagangasani@my.unt.edu
Last edited Apr 10, 2025
Created on Apr 10, 2025
Forked from Hello VizHub

This animated scatter plot explores the Iris dataset, cycling through four different feature combinations on the x-axis to reveal relationships between sepal and petal measurements. Built with D3.js (version 6.7), the visualization uses an SVG canvas and a reusable `scatterPlot` function that handles axis scaling and circle placement. The code applies color coding by species (skyblue, lightgreen, orange) and includes a legend, axis labels, and a title. A `setInterval` timer sequentially updates the x-axis mapping to petal_width, sepal_width, petal_length, or sepal_length, while the y-axis remains fixed on sepal_length, demonstrating dynamic data exploration.

AI-generated description

A demonstration of reusable scatter plot.

Comments

Sign in to join the discussion.

MIT Licensed