Skip to main content
100%

Testing Stacked bar

✓ Published0🌍 Public

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 description

This visualization was originally forked from one of Curran Kelleher's stacked bar chart examples .

MIT Licensed

Similar vizzes