(p: DataPoint)
| 111 | type DataPointTupleLocal = readonly [x: number, y: number, size?: number]; |
| 112 | const isTupleDataPoint = (p: DataPoint): p is DataPointTupleLocal => Array.isArray(p) && p.length >= 2; |
| 113 | const getX = (p: DataPoint): number => (isTupleDataPoint(p) ? p[0] : p.x); |
| 114 | const first = seriesA[0]; |
| 115 | const last = seriesA.length > 0 ? seriesA[seriesA.length - 1] : undefined; |
| 116 | const xMin = first ? getX(first) : Date.now(); |
no test coverage detected