( xValue: XValue, xScale: XScale, timestampUnit: TimestampUnit, )
| 392 | }; |
| 393 | |
| 394 | const getContinuousXValue = ( |
| 395 | xValue: XValue, |
| 396 | xScale: XScale, |
| 397 | timestampUnit: TimestampUnit, |
| 398 | ): number | undefined => |
| 399 | xScale == LINEAR |
| 400 | ? isNumber(xValue) |
| 401 | ? xValue |
| 402 | : undefined |
| 403 | : xScale == TIME |
| 404 | ? normalizeTimeValue(xValue, timestampUnit) |
| 405 | : undefined; |
| 406 | |
| 407 | const getTime = (value: string | Date): number | undefined => { |
| 408 | const time = +dateNew(value); |
no test coverage detected
searching dependent graphs…