From 8bd5be47e141a059f2a37db8773ce19ddaa4a182 Mon Sep 17 00:00:00 2001 From: VWSCoronaDashboard29 Date: Fri, 8 Mar 2024 13:56:01 +0100 Subject: [PATCH] feat(COR-1938): Set dateformat of first tick to include date --- .../components/axes/logic/create-time-ticks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app/src/components/time-series-chart/components/axes/logic/create-time-ticks.ts b/packages/app/src/components/time-series-chart/components/axes/logic/create-time-ticks.ts index 287397b57f..c0b16d57f3 100644 --- a/packages/app/src/components/time-series-chart/components/axes/logic/create-time-ticks.ts +++ b/packages/app/src/components/time-series-chart/components/axes/logic/create-time-ticks.ts @@ -78,7 +78,7 @@ export function createTimeTicksAllTimeFrame(startTick: number, endTick: number, // This if statement ensures that first & second label of the all-values timeframe don't overlap if (breakpoints.lg && Math.floor((ticks[0].timestamp - startTick) / 86400) > 180) { - ticks.unshift({ timestamp: start, formatStyle: 'axis-with-month-year-short' } as TickInstance); + ticks.unshift({ timestamp: start, formatStyle: 'axis-with-day-month-year-short' } as TickInstance); } return ticks;