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: {