Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Stacked bar chart

Public visualization

Viewing a saved revision (read-only)

bda4c2c0d7cf41a19949ebfe96f74722

Stacked bar chart

0 stars1🌍 Public
AArun Pratap
Last edited Jul 21, 2023
Created on Jul 21, 2023

This stacked bar chart displays monthly electricity consumption in kilowatt-hours, segmented by account number. It uses D3.js with the `d3-scale-chromatic` library for color mapping, rendering via SVG and canvas. Data is grouped by read date and stacked using `d3.stack()`, with axes scaled by `scaleBand` and `scaleLinear`. Mouseover interactions adjust bar opacity, and a title tooltip shows the segment’s kilowatt-hour value.

AI-generated description