Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Visualization 1 (Stacked Bars)

Public visualization

Viewing a saved revision (read-only)

91dfbc0819484b0dae3cfb2032ff3c80

Visualization 1 (Stacked Bars)

0 stars0🌍 Public
SSarahKiyani
Last edited May 31, 2020
Created on May 29, 2020

A stacked bar chart compares total sales across product sub-categories, segmented by customer segment (Consumer, Corporate, Home Office). The chart uses D3.js with the `d3.nest`, `d3.layout.stack`, and `d3.legend.color` APIs to compute the stacked layout and render an interactive legend. Data is loaded from a CSV file (`data(sorted & grouped).csv`). Hover tooltips and a semi-transparent overlay highlight individual segments.

AI-generated description