mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-17 22:29:52 +08:00
fixed chart clipping
This commit is contained in:
parent
526f391ffc
commit
2f46845d68
1 changed files with 6 additions and 5 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue