Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2_q1

Public visualization

Viewing a saved revision (read-only)

67414a4f31264f299974d420de62c0fb

Activity6_Task2_q1

0 stars0🌍 Public
Vvemurisuchitha@gmail.com
Last edited Apr 13, 2024
Created on Apr 12, 2024
Forked from Hello VizHub

This stacked bar chart compares smartphone brand sales for Apple, Samsung, and Xiaomi across seven countries, with each bar segment representing a brand’s contribution to total sales. Hovering over a segment reveals a tooltip with the exact brand, sales figure, and country. The visualization uses d3.csv to load the dataset, d3.stack() to aggregate values, and d3.scaleBand for the x-axis. Color-coded segments follow an ordinal scale, while an SVG legend identifies each brand.

AI-generated description