pub fn auto_range(candles: &[Candle]) -> (Range, Range)Expand description
Computes x and y ranges from a slice of candles with 5% padding.
The x range spans [min_time, max_time] and the y range spans
[min_low, max_high], each padded by 5% of their span.
Returns (x_range, y_range). If candles is empty, both ranges default
to 0.0..1.0.