Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Sales comparision by segment per sub-category

Public visualization

Viewing a saved revision (read-only)

2336bdaa459c4819a533e52002d084c9

Sales comparision by segment per sub-category

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

This example visualizes the total sales case numbers for four segments—Consumer, Corporate, Home Office, and Unknown—stacked by sub-category, with each segment’s contribution represented as a colored bar section. The chart initially displays absolute counts, and a toggle above the visualization switches the view to a percentage-based, normalized comparison. The visualization is built with D3.js v3 and Vue, using the `d3.svg.axis`, `d3.scale.linear`, and `d3.layout.stack` APIs to compute and render the stacked bars. The data is loaded from a CSV file containing the sales records.

AI-generated description