Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Visualization 1 (Stacked Bars)

Public visualization

Visualization 1 (Stacked Bars)

0 stars0🌍 Public
SSarahKiyani
Last edited May 15, 2020
Created on May 15, 2020

This stacked bar chart compares sales across product sub-categories, segmented by customer segment (Consumer, Corporate, Home Office). It displays aggregated sales totals for each sub-category, with each segment represented by a differently colored stack. The visualization uses D3.js version 3 with `d3.layout.stack` to create the stacked layers, `d3.scale.ordinal` and `d3.scale.linear` for axes, and `d3.legend` for a color legend. Animated hover effects and tooltips via `d3-tip` highlight individual segment contributions. Data comes from a CSV file, rendered as an SVG with rotated x-axis labels.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed