Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task 9

Public visualization

Task 9

0 stars0🌍 Public
HHari Kiran
Last edited Apr 21, 2024
Created on Apr 21, 2024
Forked from Hello VizHub

This example demonstrates an animated scatterplot of the Iris dataset, cycling through different pairings of sepal and petal measurements on the x-axis while the y-axis remains fixed on sepal length. It uses D3’s `csv` loader, `scaleLinear`, `axisLeft`, `axisBottom`, and `selectAll`/`join` to render the SVG points and axes. A custom ES6 module defines a reusable `scatterPlot` function, while `setInterval` triggers the axis updates. Color-coded legend markers distinguish the three Iris species.

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