( ticks: readonly TimeValue[], xScale: XScale = LINEAR, timestampUnit: TimestampUnit = MILLISECOND, )
| 512 | ): number | undefined => (isFiniteNumber(value) ? value : bound); |
| 513 | |
| 514 | const getAxisTicks = ( |
| 515 | ticks: readonly TimeValue[], |
| 516 | xScale: XScale = LINEAR, |
| 517 | timestampUnit: TimestampUnit = MILLISECOND, |
| 518 | ): Ticks => |
| 519 | arraySort( |
| 520 | arrayFilter( |
| 521 | arrayMap([...ticks], (tick) => |
| 522 | xScale == TIME ? normalizeTimeValue(tick, timestampUnit) : tick, |
| 523 | ), |
| 524 | (tick): tick is number => isFiniteNumber(tick), |
| 525 | ), |
| 526 | (tick1, tick2) => { |
| 527 | return tick1 - tick2; |
| 528 | }, |
| 529 | ); |
| 530 | |
| 531 | const getParsedChildren = (children: ReactNode): ParsedChildren => { |
| 532 | const chartChildren: ReactNode[] = []; |
no test coverage detected
searching dependent graphs…