( point: ResolvedAreaSeriesConfig['data'][number] )
| 38 | const isTupleDataPoint = (point: ResolvedAreaSeriesConfig['data'][number]): point is DataPointTuple => Array.isArray(point); |
| 39 | |
| 40 | const getPointXY = ( |
| 41 | point: ResolvedAreaSeriesConfig['data'][number] |
| 42 | ): { readonly x: number; readonly y: number } => { |
| 43 | if (isTupleDataPoint(point)) return { x: point[0], y: point[1] }; |
| 44 | return { x: point.x, y: point.y }; |
| 45 | }; |
| 46 | |
| 47 | const computeDataBounds = ( |
| 48 | data: ResolvedAreaSeriesConfig['data'] |
no test coverage detected