Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6_Question 2

Public visualization

Viewing a saved revision (read-only)

8af238e545744e4689b9fec4d7602fe2

Activity 6_Question 2

0 stars0🌍 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