Activity6_Task2 (question2)
✓ Published0🌍 Public
This stacked bar chart visualizes the mean measurements of sepal length, sepal width, petal length, and petal width for three iris species: setosa, versicolor, and virginica. Each horizontal bar represents a species, segmented into colored sections corresponding to each measurement type, with tooltips displaying exact mean values on hover. The visualization loads data from iris.csv using D3 v7, applying a linear scale for the x-axis and a band scale for the y-axis. It employs `d3.stack()` to compute stacked bar segments, `d3.scaleOrdinal()` for color encoding, and renders all elements as SVG with interactive mouseover tooltips.
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.
MIT Licensed