From 2f46845d6879e48ab5cc014379285ef273cebbb2 Mon Sep 17 00:00:00 2001 From: Miodec Date: Tue, 20 Sep 2022 13:39:12 +0200 Subject: [PATCH] fixed chart clipping --- frontend/src/ts/controllers/chart-controller.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/frontend/src/ts/controllers/chart-controller.ts b/frontend/src/ts/controllers/chart-controller.ts index 363831955..90271b9c1 100644 --- a/frontend/src/ts/controllers/chart-controller.ts +++ b/frontend/src/ts/controllers/chart-controller.ts @@ -88,6 +88,8 @@ export const result: ChartWithUpdateColors< labels: [], datasets: [ { + //@ts-ignore the type is defined incorrectly, have to ingore the error + clip: false, label: "wpm", data: [], borderColor: "rgba(125, 125, 125, 1)", @@ -97,6 +99,8 @@ export const result: ChartWithUpdateColors< pointRadius: 2, }, { + //@ts-ignore the type is defined incorrectly, have to ingore the error + clip: false, label: "raw", data: [], borderColor: "rgba(125, 125, 125, 1)", @@ -106,6 +110,8 @@ export const result: ChartWithUpdateColors< pointRadius: 2, }, { + //@ts-ignore the type is defined incorrectly, have to ingore the error + clip: false, label: "errors", data: [], borderColor: "rgba(255, 125, 125, 1)", @@ -129,11 +135,6 @@ export const result: ChartWithUpdateColors< ], }, options: { - layout: { - padding: { - top: 2, - }, - }, responsive: true, maintainAspectRatio: false, scales: {