fix(usage): prevent gaps in request trend fill by matching point colors

This commit is contained in:
Supra4E8C
2026-01-05 17:32:01 +08:00
parent 2a92ea8862
commit 71556a51c5

View File

@@ -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
};