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

Commit

Permalink
task(COR-1948): Added comment for create-time-ticks function (#4986)
Browse files Browse the repository at this point in the history
  • Loading branch information
VWSCoronaDashboard30 authored Feb 26, 2024
1 parent bf46d46 commit c4c4a00
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ function getDefault2ValuesForXAxis(startTick: number, endTick: number): TickInst
export function createTimeTicksAllTimeFrame(startTick: number, endTick: number, ticksNumber: number, breakpoints: Breakpoints): TickInstance[] {
/**
* This method is only used for the `all` timeframe option.
* The function is not and won't be adjusted to cover all the edge cases available:
* e.g. having a very short period between the start and end date which results
* in only 1 or 2 january dates in between them.
*/
const start = middleOfDayInSeconds(startTick);
const end = middleOfDayInSeconds(endTick);
Expand Down

0 comments on commit c4c4a00

Please sign in to comment.