🌍 Public
Viewing a saved revision (read-only)
2b340a8adbf840f484c1d93d76746c2b
1 BMW volume of sales
This stacked bar chart displays BMW sales volumes per year, segmented by region. The code loads a CSV file and uses `d3.rollups` to aggregate the data by year and region, then renders the result as SVG bars via `d3.stack`. A custom color scale classifies regions by their total sales, from highest to lowest, and bars can be clicked to highlight individual regions.
AI-generated description