Activity_6_Task_2_Q2
✓ Published0🌍 Public
This visualization uses a stacked bar chart to show petal lengths for different Iris flower species. The code renders horizontal bars for sepal width, petal length, and petal width, with color-coded segments for each species. It employs D3.js v7 with d3.stack for data transformation, d3.scaleBand for the y-axis, and d3.axisBottom for the x-axis. Interactive tooltips display petal length values on mouseover, using d3.select and event handlers. The data comes from the Iris flower dataset, with SVG rendering.
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