Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Stacked Bars

Public visualization

Stacked Bars

0 stars0🌍 Public
Pprincit
Last edited Apr 28, 2020
Created on Apr 27, 2020

This stacked bar chart displays sales totals by product sub-category, with each bar segmented by customer segment. The visualization uses Vega-Lite API with D3.js to load CSV data, aggregate sales values, and render SVG output. Categories are sorted by descending sales, while color encoding differentiates Consumer, Corporate, and Home Office segments. Tooltips provide additional sales details on interaction, and axis labels are customized through the Vega-Lite config object.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed