Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task2_Activity6

Public visualization

Viewing a saved revision (read-only)

8ce0e9e0b92244bfad405b6144dc14a3

Task2_Activity6

0 stars0🌍 Public
Ssanjanadadi19@gmail.com
Last edited Apr 5, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

This stacked bar chart visualizes the distribution of four flower measurements—sepal length, sepal width, petal length, and petal width—across the three Iris species. Each horizontal bar represents a species, with segments proportional to the percentage of each measurement type. Hovering over a segment reveals the exact percentage via a D3 tooltip. The chart uses `d3.csv` to load the Iris dataset, `d3.stack` for stacking, and `d3.scaleBand` for the y-axis, with data rendered as SVG rectangles.

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.