(value: unknown)
| 570 | }; |
| 571 | |
| 572 | const normalizeAxisAutoBounds = (value: unknown): AxisConfig['autoBounds'] | undefined => { |
| 573 | if (typeof value !== 'string') return undefined; |
| 574 | const v = value.trim().toLowerCase(); |
| 575 | return v === 'global' || v === 'visible' ? (v as AxisConfig['autoBounds']) : undefined; |
| 576 | }; |
| 577 | |
| 578 | const isTupleDataPoint = (p: DataPoint): p is DataPointTuple => Array.isArray(p); |
| 579 |