Hourly Electricity Usage Trend Chart
✓ Published1🌍 Public
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 descriptionMIT Licensed