Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Stacked bar chart

Public visualization

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

Comments

Sign in to join the discussion.

MIT Licensed