Skip to main content
100%

Assignment 2 task1

✓ Published0🌍 Public
BBhavana Sharma
Last edited Apr 9, 2024
Created on Apr 9, 2024
Forked from Hello VizHub

This interactive visualization displays the Iris dataset through a dynamic scatter plot, cycling through different feature pairs on the x-axis every few seconds. The code uses D3’s `scaleLinear`, `axisBottom`, and `axisLeft` to construct the plot, while circles are colored by species (setosa, versicolor, virginica) via a custom marker function. The animation leverages `setInterval` to update the x-axis mapping, with axes, labels, and a legend re-rendered through `selection.call`. Data loads from a CSV URL using D3’s `csv` parser, and the SVG graphic updates in place.

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