From 92efe55fc5321d7c0b838bfe51baaf6802782352 Mon Sep 17 00:00:00 2001 From: Roo Code Date: Tue, 9 Sep 2025 21:40:31 +0000 Subject: [PATCH] fix: prevent negative cost values and add top margin for label visibility in evals chart --- apps/web-roo-code/src/app/evals/plot.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web-roo-code/src/app/evals/plot.tsx b/apps/web-roo-code/src/app/evals/plot.tsx index 86c1be3a9a..f68007cd12 100644 --- a/apps/web-roo-code/src/app/evals/plot.tsx +++ b/apps/web-roo-code/src/app/evals/plot.tsx @@ -175,13 +175,13 @@ export const Plot = ({ tableData }: PlotProps) => { <>
Cost x Score
- + Math.round((dataMin - 5) / 5) * 5, + (dataMin: number) => Math.max(0, Math.round((dataMin - 5) / 5) * 5), (dataMax: number) => Math.round((dataMax + 5) / 5) * 5, ]} tickFormatter={(value) => formatCurrency(value)}