Activity-8_Question-2
✓ Published0🌍 Public
This example visualizes the Iris dataset as a stacked bar chart, showing the relative contributions of sepal length, sepal width, petal length, and petal width for each of the three species. It uses d3.csv to load the data and d3.stack to transform the four numeric columns into stacked series. The chart renders as SVG with d3.scaleBand and d3.scaleLinear axes, and includes an interactive hover effect that increases bar opacity. A color-coded legend identifies each measurement category.
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