Stack Chart Template
✓ Published0🌍 Public
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 descriptionMIT Licensed