Task2 Question 1
✓ Published0🌍 Public
This visualization displays the stacked percentages of iris flower characteristics, broken down by passenger ID, as horizontal bars. The chart uses D3.js (v7) with an SVG renderer, employing the `d3.stack()` function to create the stacked segments and `d3.scaleOrdinal()` for color mapping. It reads data directly from a passed dataset, calculating scales with `d3.scaleLinear()` for the x-axis and `d3.scaleBand()` for the categorical y-axis, and includes hover interactions that reduce rectangle opacity.
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