fixed chart clipping

This commit is contained in:
Miodec 2022-09-20 13:39:12 +02:00
parent 526f391ffc
commit 2f46845d68

View file

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