Skip to main content
100%

Activity 6_Question 2

✓ Published0🌍 Public
Mmsnikhil2608@gmail.com
Last edited Apr 3, 2025
Created on Apr 3, 2025
Forked from Activity 6_Task 2

This stacked bar chart visualizes sales figures for Grocery, Appliances, and Toys across three years (2018–2020), with each bar segment colored by category. Built with D3.js v7, it uses `d3.stack` to accumulate category values, `d3.scaleBand` and `d3.scaleLinear` for axes, and SVG rectangles for rendering. Interactive tooltips appear on mouseover, displaying category and exact sales amount. The chart includes axis labels, a legend, and reads data from a local CSV file.

AI-generated description
MIT Licensed

Similar vizzes