Stacked Bar Chart with HTML and movable filter
✓ Published0🌍 Public
BBismark Kofi Owusu Sarfo
Last edited Nov 22, 2025
Created on Nov 22, 2025
This stacked bar chart displays BMW model sales volumes across multiple years, with each bar segmented by year and colored using a paired color scheme. A movable filter panel allows users to highlight either the highest or lowest selling model overall. The visualization uses D3.js v7 with SVG rendering, employing d3.rollups for data aggregation, d3.stack for bar stacking, and d3.scaleOrdinal with d3.schemePaired for color mapping. Hovering over individual bar segments reveals detailed tooltips with model, year, and sales figures.
AI-generated descriptionMIT Licensed