Stack Chart Template
This stacked bar chart compares sales by customer segment (consumer, corporate, home office) across product sub-categories. Rendered as an SVG with animated transitions, users can toggle between absolute sales values and percentage shares. The visualization uses D3.js version 3.5.6, leveraging d3.layout.stack for stacking, d3.scale.ordinal for the x-axis, and d3.svg.axis for rendering. Data is loaded from a local CSV file, and hover effects highlight individual bar segments.