Skip to main content
100%

Stacked bar chart

✓ Published0🌍 Public
AArun Pratap
Last edited Jul 21, 2023
Created on Jul 21, 2023
Forked from Stacked bar chart

This stacked bar chart visualizes monthly electricity consumption across multiple accounts, with each bar segmented by account and colored using a categorical scheme. The chart, rendered as an SVG, uses D3's scaleBand, scaleLinear, and scaleOrdinal APIs to map dates, energy values, and account colors, respectively. Interactive hover effects adjust bar opacity, and a tooltip displays each segment's energy value. Data is processed via d3.group and d3.stack to create the stacked series, with the final layout including axis labels and a title.

AI-generated description
MIT Licensed

Similar vizzes