act6 q2
✓ Published0🌍 Public
This example shows a stacked bar chart of sales by category across four quarters, with tooltips revealing exact values per segment. It uses D3 v7’s `d3.stack`, `d3.scaleBand`, `d3.scaleLinear`, and `d3.axisLeft`/`axisBottom` to render an SVG. The code loads data from a local CSV, applies an ordinal color scale, and builds an interactive hover tooltip with D3 selections.
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