🌍 Public
Viewing a saved revision (read-only)
f9648ee21f15470f8a8fb90a452e85f1
Tutorial2_Q3
A stacked horizontal bar chart displays the percentage distribution of four iris measurements—sepal length, sepal width, petal length, and petal width—across three species. Using d3.stack and d3.scaleBand, each species row segments colored rectangles proportionally, with a tooltip showing exact percentages on hover. The SVG renders with d3.axisBottom and d3.axisLeft, and the iris dataset is loaded from a 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.