From 08c67bbe6344213cb5b8c635413b22a3a2dbab83 Mon Sep 17 00:00:00 2001 From: alelliott Date: Wed, 4 Sep 2024 20:47:50 -0400 Subject: [PATCH] fix stETH chart date ticks --- src/common/InfoDashboard/const.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/InfoDashboard/const.ts b/src/common/InfoDashboard/const.ts index 7b7e926..f0e9f03 100644 --- a/src/common/InfoDashboard/const.ts +++ b/src/common/InfoDashboard/const.ts @@ -17,12 +17,12 @@ export const CHART_CONFIG: Readonly = Object.freeze({ }, ticks: { color: '#4f4f4f', - autoSkip: false, + autoSkip: true, maxRotation: 0, - callback: function (value: unknown, idx: number) { + callback: function (value: unknown, idx: number, values: any[]) { // eslint-disable-next-line @typescript-eslint/no-explicit-any const label = (this as any).getLabelForValue(value) - return idx === 0 || (idx + 1) % 5 === 0 ? label : '' + return label }, }, },