autoScaleRange

Calculates an ClosedFloatingPointRange that can be used with a DoubleLinearAxisModel based on the min/max values of the provided list of Doubles. If the list is empty, returns a range of 0..1.


@JvmName(name = "autoScaleFloatRange")
fun List<Float>.autoScaleRange(): ClosedFloatingPointRange<Float>

Calculates an ClosedFloatingPointRange that can be used with a FloatLinearAxisModel based on the min/max values of the provided list of Floats. If the list is empty, returns a range of 0..1.


Calculates an IntRange that can be used with a IntLinearAxisModel based on the min/max values of the provided list of Ints. If the list is empty, returns a range of 0..1.


Calculates a LongRange that can be used with a LongLinearAxisModel based on the min/max values of the provided list of Longs. If the list is empty, returns a range of 0..1.