Skip to main content
100%

Task 9

✓ Published0🌍 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.
MIT Licensed

Similar vizzes