Question 2
✓ Published0🌍 Public
A stacked bar chart visualizes sales performance by region, breaking down percentages across four product categories using data from a local CSV file. The chart employs D3 v7's `d3.stack` and `d3.scaleBand` to render SVG rectangles, with a tooltip triggered by mouse events. An ordinal color scale maps categories, and axes display percentage values. The static title and legend complete the presentation, showcasing local module imports alongside the D3 library.
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