Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity9&10

Public visualization

Activity9&10

0 stars0🌍 Public
Ssahaspragna6@gmail.com
Last edited Apr 21, 2024
Created on Apr 21, 2024
Forked from Hello VizHub

This animated scatterplot displays the Iris dataset, cycling through four different feature pairs to reveal relationships between sepal and petal measurements. The visualization loads data via d3.csv and uses a custom scatterPlot() function built with d3.scaleLinear, axisBottom, and axisLeft to render axes. Circles are colored by species using a switch statement, with a legend and labels added manually. The setInterval function cycles through columns to update the x-axis mapping, while SVG text and circle elements dynamically update to reflect the current dimensions.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.

Comments

Sign in to join the discussion.

MIT Licensed