Skip to main content
Public

Share visualization

Loading preview…

Hourly Electricity Usage Trend Chart

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Hourly Electricity Usage Trend Chart

1
Yyuting89830@gmail.com
Last edited Jan 4, 2024
Created on Jan 2, 2024

This visualization shows hourly electricity usage trends over the past two weeks, with each line representing a specific time of day (e.g., "08:30") plotted across weekdays and labeled like "週一" or "上週一". The line chart is rendered on a Canvas element using Chart.js, which draws multiple randomly colored series to reveal daily consumption patterns. The underlying script fetches JSON data from a GitHub-hosted summary log, then uses moment.js to calculate timestamps and aggregate power usage values for each 10-minute interval. Data is grouped by weekday labels with a custom diffTrend function that distinguishes current-week days from previous-week ones.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed