Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Stack Chart Template

Public visualization

Stack Chart Template

0 stars0🌍 Public
Aaruba-haroon
Last edited May 1, 2020
Created on Apr 28, 2020

This stacked bar chart compares sales across consumer, corporate, and home office segments for multiple sub-categories. It uses D3.js (v3) with an SVG renderer and animated transitions to toggle between absolute counts and percentage-share views via a form input. Data is loaded from a CSV file and sorted by category, with segments color-coded using a categorical scale. The chart includes a legend and tooltip, and the axes update dynamically during transitions.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed