dynamicTimeFormatter
A dynamic CartesianValueFormatter that adjusts the time format based on the total data span (CartesianRanges.xLength).
Since chart data is already filtered by TimeFrame, xLength approximates the visible window. Vico's formatter receives CartesianMeasuringContext during measurement passes — not CartesianDrawingContext — so context.zoom is unavailable and we intentionally avoid it.
| Data span | Format | Example |
|---|---|---|
| ≤ 1 hour | Time with seconds | 3:45:12 PM |
| ≤ 2 days | Time only | 3:45 PM |
| ≤ 14 days | Date + time (two-line) | 4/9/26 ↵ 3:45 PM |
| > 14 days | Date only | 4/9/26 |