🌍 Public
Viewing a saved revision (read-only)
2336bdaa459c4819a533e52002d084c9
Sales comparision by segment per sub-category
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