Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
feat(COR-1938): Set dateformat of first tick to include date
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-van-eekelen committed Mar 8, 2024
1 parent 6f57ed1 commit 8bd5be4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8bd5be4

Please sign in to comment.