Skip to content

feat: swap chart panel positions — bar chart needs wide column, donut fits narrow #137

@pitimon

Description

@pitimon

Problem

Current layout puts the bar chart in a narrow column and donut in a wide-capable position:

Row 1: [TOKEN USAGE OVER TIME (wide)]  [PROJECT ACTIVITY bar (narrow)]
Row 2: [PEAK HOURS (wide)]             [MODEL DISTRIBUTION donut (narrow)]

After #130 changed PROJECT ACTIVITY from donut to horizontal bar chart, it needs more horizontal space for labels + bars. Currently bars are compressed and project names get truncated.

MODEL DISTRIBUTION (donut) is compact by nature — works fine in a narrow column.

Suggested Layout

Option A — Swap row 1 positions:

Row 1: [TOKEN USAGE OVER TIME (wide)]  [MODEL DISTRIBUTION donut (narrow)]
Row 2: [PROJECT ACTIVITY bar (wide)]   [PEAK HOURS (narrow)]
  • Bar chart gets the wide column — labels readable, bars proportional
  • Donut fits naturally in narrow space
  • Peak hours is compact (24 small bars) — works in narrow column

Option B — Minimal swap (same rows):

Row 1: [TOKEN USAGE OVER TIME (wide)]  [MODEL DISTRIBUTION donut (narrow)]
Row 2: [PEAK HOURS (wide)]             [PROJECT ACTIVITY bar (narrow)]
  • Only swaps the two right-column charts
  • Less layout disruption, but bar chart still narrow

Recommend Option A — gives bar chart the wide column it needs.

Implementation

Swap the chart components in app/overview-client.tsx grid layout (~line 275-290).

Context

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