🌍 Public
Viewing a saved revision (read-only)
8f550bdc1f0c409588e377c465e016b2
Task8_Question2_HKK
This example shows a stacked bar chart of the Iris dataset, displaying the contributions of sepal length, sepal width, petal length, and petal width per species. It loads data from a remote CSV file using `d3.csv`, and uses `d3.stack`, `d3.scaleBand`, and `d3.scaleLinear` to compute and position the layers. The visualization renders as SVG, with each species on the x-axis and cumulative measurement values on the y-axis, colored distinctly per attribute.
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.