Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Stacked bar chart

Public visualization

Viewing a saved revision (read-only)

1104d9562c3d463da9471cc437a701b6

Stacked bar chart

0 stars0🌍 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