🌍 Public
Viewing a saved revision (read-only)
4afc295c0bbf4b02a7c09e03cdd4578a
Testing Stacked bar
Aaruba-haroon
Last edited Apr 28, 2020
Created on Apr 28, 2020
This stacked bar chart visualizes sales values across product categories (accessories, art) segmented by consumer, corporate, and homeoffice sales. A legend highlights specific segments, and hovering over legend items or bars displays a tooltip with exact values via d3-tip. Rendered as SVG with D3’s stack layout, the chart uses ordinal and linear scales for axes, with an animated foreground overlay that dims non-hovered segments. The data comes from an embedded CSV, and the code relies on d3.legend for interactive color filtering.
AI-generated descriptionThis visualization was originally forked from one of Curran Kelleher's stacked bar chart examples .