(p: DataPoint)
| 282 | const isTupleDataPoint = (p: DataPoint): p is DataPointTuple => Array.isArray(p); |
| 283 | |
| 284 | const getPointXY = (p: DataPoint): { readonly x: number; readonly y: number } => { |
| 285 | if (isTupleDataPoint(p)) return { x: p[0], y: p[1] }; |
| 286 | return { x: p.x, y: p.y }; |
| 287 | }; |
| 288 | |
| 289 | const computeRawBoundsFromData = (data: ReadonlyArray<DataPoint>): Bounds | null => { |
| 290 | let xMin = Number.POSITIVE_INFINITY; |
no test coverage detected