From 71556a51c55a9690cfbbbadeb9fb8986c755d3ef Mon Sep 17 00:00:00 2001 From: Supra4E8C Date: Mon, 5 Jan 2026 17:32:01 +0800 Subject: [PATCH] fix(usage): prevent gaps in request trend fill by matching point colors --- src/utils/usage.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/usage.ts b/src/utils/usage.ts index 1b4d5b3..ae2ccfc 100644 --- a/src/utils/usage.ts +++ b/src/utils/usage.ts @@ -638,6 +638,8 @@ export interface ChartDataset { data: number[]; borderColor: string; backgroundColor: string | CanvasGradient | ((context: ScriptableContext<'line'>) => string | CanvasGradient); + pointBackgroundColor?: string; + pointBorderColor?: string; fill: boolean; tension: number; } @@ -743,6 +745,8 @@ export function buildChartData( backgroundColor: shouldFill ? (ctx) => buildAreaGradient(ctx, style.borderColor, style.backgroundColor) : style.backgroundColor, + pointBackgroundColor: style.borderColor, + pointBorderColor: style.borderColor, fill: shouldFill, tension: 0.35 };