🌍 Public
Viewing a saved revision (read-only)
11bf465bdf09416a818f2a3c5afe4d2a
Acitivty6_Question2
This scatter plot of the Iris flower dataset compares petal length and petal width, representing each species with a distinct color and a legend for identification. Rendered as SVG circles, hovering over a point displays a tooltip with the species and the exact measurements. The visualization uses D3.js v7 to load data from a local CSV file, position the points via `d3.scaleLinear` and `d3.extent`, and add axes with `d3.axisBottom` and `d3.axisLeft`. An ordinal color scale via `d3.scaleOrdinal` maps species to colors, while D3's `transition` API animates the tooltip's opacity.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.