Skip to content

Commit

Permalink
fix stETH chart date ticks
Browse files Browse the repository at this point in the history
  • Loading branch information
alelliott committed Sep 5, 2024
1 parent a30735e commit 08c67bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/InfoDashboard/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ export const CHART_CONFIG: Readonly<ChartConfig> = 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
},
},
},
Expand Down

0 comments on commit 08c67bb

Please sign in to comment.