Skip to main content
100%

Activity 6 Question 2

✓ Published1🌍 Public
Ssagipavan2385@gmail.com
Last edited Apr 4, 2025
Created on Apr 4, 2025
Forked from task1_activity6

This stacked bar chart displays sales figures for Smartphones, Laptops, and Tablets across three years, using color-coded segments to show each category’s contribution to total annual sales. Built with D3.js v7 and rendered as SVG, the chart uses stacked rectangles via the `d3.stack()` API, with axes from `d3.axisBottom` and `d3.axisLeft`. Hover interactions reveal a tooltip with category-specific values. Data comes from a local CSV file and is processed through `d3.csv()`.

AI-generated description
MIT Licensed

Similar vizzes