Skip to content

feat: bar chart for projects, enhanced donut for models#133

Merged
pitimon merged 2 commits intomainfrom
feat/chart-improvements
Apr 6, 2026
Merged

feat: bar chart for projects, enhanced donut for models#133
pitimon merged 2 commits intomainfrom
feat/chart-improvements

Conversation

@pitimon
Copy link
Copy Markdown
Owner

@pitimon pitimon commented Apr 6, 2026

Summary

  • Project activity: donut → horizontal bar chart (top 8, full names, session count in tooltip)
  • Model distribution: I/O tokens only (cache removed — was inflating Opus), % in legend
  • Renamed ProjectActivityDonut → ProjectActivityChart

Closes #130

Test plan

  • npx tsc --noEmit — zero errors
  • npm test — 119/119 pass
  • CI passes
  • Visual: bar chart shows projects with readable labels
  • Visual: model donut shows % in legend

itarun.p and others added 2 commits April 6, 2026 19:21
1. Project activity: PieChart → horizontal BarChart — shows top 8 projects
   with full names as Y-axis labels. No more "others" bucket. Tooltip
   shows tokens + session count.

2. Model distribution: removed cache tokens from chart data (cache_read
   2.5B inflated Opus to 56%). Now shows I/O tokens only for fair
   comparison. Added percentage to legend labels.

3. Renamed component: ProjectActivityDonut → ProjectActivityChart

Based on data viz best practice: donut for 2-5 categories with even
distribution, bar chart for many categories with long labels.

Closes #130
@pitimon pitimon merged commit 183764b into main Apr 6, 2026
1 check passed
@pitimon pitimon deleted the feat/chart-improvements branch April 6, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: improve chart professionalism — bar chart for projects, enhanced donut for models

1 participant