Skip to main content
100%

Activity 8 Q1

✓ Published0🌍 Public
Ppasyasahas
Last edited Jul 5, 2023
Created on Jul 5, 2023
Forked from Hello VizHub

This example showcases an animated scatterplot of Fisher’s Iris dataset, cycling through different pairings of sepal and petal measurements. The visualization displays colored circles representing three species, with a manual legend showing color mappings. The code uses D3 v6 via UNPKG, loading data with `d3.csv`, and building scales and axes with `scaleLinear` and `axisBottom`. A `setInterval` updates the x-axis variable every few seconds. The SVG rendering includes custom labels and styling, demonstrating local ES6 module imports for the scatterplot function.

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