Implement Message Rate by Source Chart #5

Open
opened 2025-08-24 18:16:31 +02:00 by olemd · 0 comments
Owner

Description

The Statistics view has a placeholder canvas for 'Message Rate by Source' chart but no implementation exists.

Current Status

  • HTML canvas element exists (message-chart)
  • No Chart.js initialization or configuration
  • No data collection for per-source message rates
  • No chart update logic in WebSocket handler

Expected Functionality

  • Display real-time message rates for each configured Beast source
  • Show historical timeline (last 10-30 minutes)
  • Color-coded lines for each source
  • Legend showing source names
  • Y-axis: Messages per second/minute
  • X-axis: Time

Implementation Notes

  • Follow pattern from existing aircraft count timeline chart
  • Use Chart.js library (already included)
  • Collect per-source message statistics in merger.go
  • Add message rate data to WebSocket updates

Files to Modify

  • assets/static/js/app.js - Add chart initialization and update logic
  • internal/merger/merger.go - Add per-source message rate tracking
  • WebSocket data structure - Include source statistics
## Description The Statistics view has a placeholder canvas for 'Message Rate by Source' chart but no implementation exists. ## Current Status - ✅ HTML canvas element exists (message-chart) - ❌ No Chart.js initialization or configuration - ❌ No data collection for per-source message rates - ❌ No chart update logic in WebSocket handler ## Expected Functionality - Display real-time message rates for each configured Beast source - Show historical timeline (last 10-30 minutes) - Color-coded lines for each source - Legend showing source names - Y-axis: Messages per second/minute - X-axis: Time ## Implementation Notes - Follow pattern from existing aircraft count timeline chart - Use Chart.js library (already included) - Collect per-source message statistics in merger.go - Add message rate data to WebSocket updates ## Files to Modify - assets/static/js/app.js - Add chart initialization and update logic - internal/merger/merger.go - Add per-source message rate tracking - WebSocket data structure - Include source statistics
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: olemd/skyview#5
No description provided.