Skip to main content
100%

Visualization 1 (Stacked Bars)

✓ Published0🌍 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
MIT Licensed

Similar vizzes