Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2

Public visualization

Viewing a saved revision (read-only)

be845270ff03433c8e5012b786c5b66d

Activity6_Task2

0 stars0🌍 Public
Jjtulasi05@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This visualization shows stacked bar charts comparing wholesale product expenditures—including Fresh, Milk, Grocery, Frozen, Detergents_Paper, and Delicassen—across three customer regions. Each horizontal bar aggregates spending per region, with segments colored by product category. The chart uses d3.stack() to compute the stacked series, d3.scaleBand for the regional y-axis, and d3.scaleLinear for the spending x-axis. Hovering highlights each segment and displays a tooltip with the category and its value, formatted using d3.format. Data comes from the provided CSV file, rendered as SVG elements.

AI-generated description