Skip to main content
100%

Activity6_Task2 - Q2 (3)

✓ Published0🌍 Public
Nnavyabade05@gmail.com
Last edited Mar 30, 2025
Created on Mar 30, 2025
Forked from Activity6_Task 2

This stacked bar chart shows chocolate sales (in units) across five regions for six chocolate types, with sales values accessible via interactive tooltips on mouseover. It uses D3.js v7 with SVG rendering, loading data from a CSV file. The chart employs `d3.stack` for stacking, `d3.scaleOrdinal` for color assignment, and `d3.axisBottom`/`d3.axisLeft` for axes. A manually drawn legend and CSS-styled tooltips enhance interactivity, while region colors follow `d3.schemeSet2`.

AI-generated description
MIT Licensed

Similar vizzes