Skip to content

Dashboard: animated bar-chart race between models/agents #56

Description

@tangentlin

Motivation

The existing by-model / by-agent dashboard views are static stacked/grouped charts. An animated "bar-chart race" over the selected time range (models or agents jockeying for position as spend accumulates day by day) is a well-understood, inherently satisfying visualization genre and would be a standout dashboard feature.

Proposal

Add a race-chart view (toggle alongside the existing none/by-model/by-agent dimension) that animates ranked bars for models or agents growing/reordering across the selected date range, either auto-playing or scrubbable.

Feasibility notes

  • Chart.js has community plugins for bar-chart races; alternatively hand-roll with requestAnimationFrame over the existing DashboardSeries by-model/by-agent data — no new archive/derive data needed, this reshapes data already computed for the current stacked views.
  • Play/pause/scrub controls need UI additions to renderer.ts and dashboard.css but no new IPC surface.

Acceptance criteria

  • Race view available as an option alongside existing by-model/by-agent views, reusing the same underlying series data.
  • Supports at least play/pause; scrubbing is a nice-to-have.
  • Respects the existing 30d/90d/All range presets.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions