Skip to content

Commit 4f5662d

Browse files
committed
fix(usage): expand pie chart color palette from 7 to 20 colors
1 parent 8f51b17 commit 4f5662d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

frontend/src/pages/Usage.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,12 @@ const usageTableHeadClass = 'text-[12px] font-semibold'
668668
const usageTableTextClass = 'text-[14px]'
669669
const usageTableMonoClass = 'font-mono text-[13px] tabular-nums'
670670
const usageTableBadgeClass = 'text-[13px]'
671-
const modelPieColors = ['#2563eb', '#059669', '#f59e0b', '#dc2626', '#7c3aed', '#0891b2', '#db2777']
671+
const modelPieColors = [
672+
'#2563eb', '#059669', '#f59e0b', '#dc2626', '#7c3aed',
673+
'#0891b2', '#db2777', '#ea580c', '#4f46e5', '#16a34a',
674+
'#ca8a04', '#e11d48', '#0d9488', '#9333ea', '#65a30d',
675+
'#0284c7', '#c026d3', '#d97706', '#6366f1', '#14b8a6',
676+
]
672677
const modelPieShellClass = 'flex min-h-[196px] flex-col border-l border-border pl-4 max-lg:min-h-0 max-lg:border-l-0 max-lg:border-t max-lg:pl-0 max-lg:pt-3'
673678

674679
type UsageTableColumn = 'status' | 'model' | 'account' | 'apiKey' | 'endpoint' | 'type' | 'token' | 'cost' | 'cached' | 'firstToken' | 'duration' | 'time'

0 commit comments

Comments
 (0)