🌍 Public
Viewing a saved revision (read-only)
0890016400bb46b5bf551a1cd0bc40ec
Activity 6 task 2
This visualization shows the petal length distribution for three flower species (setosa, versicolor, and virginica) using a stacked bar chart. The horizontal bars display combined petal length values for each species. Built with D3.js v7, it uses `d3.stack()`, `d3.scaleLinear()`, `d3.scaleBand()`, and `d3.axisBottom()` to render SVG, with color encoding via `d3.scaleOrdinal()`. Interactive mouseover tooltips display exact petal lengths. The data originates from the iris dataset CSV file.
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.