Skip to main content
100%

ICE-6 Electric bar graph

✓ Published0🌍 Public
RRevanthGrreddy
Last edited Jun 25, 2022
Created on Jun 25, 2022
Forked from HTML Starter

This stacked bar chart visualizes personal electricity consumption over time, with each bar segment representing usage attributed to a specific account. The bars are color-coded using a categorical scale from d3.scaleOrdinal and d3.schemeCategory10, and hovering highlights a segment while a tooltip displays its kilowatt-hour value. The visualization is built with React and D3, using d3.stack to aggregate data by date and account, d3.scaleBand for the x-axis, and d3.scaleLinear for the y-axis. Rendering is done via SVG with canvas-based text measurement for layout adjustments.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes