Log Axis Model
class LogAxisModel(range: ClosedRange<Int>, val minimumMajorTickSpacing: Dp = 50.dp) : AxisModel<Float>
A logarithmic axis.
Parameters
range
The minimum to maximum values allowed to be represented on this Axis expressed as exponents with a base of 10. For example a range of -1..3 represents an axis range of 0.1 to 1000 (10^-1..10^3).
Properties
Functions
Link copied to clipboard
Computes the linear offset of the provided point along this axis relative to its min value. For a linear axis this is offset = (point-min)/(max-min). Values less than 0 or greater than 1 mean the point is before or beyond the range of the axis, respectively. Nonlinear, e.g. log, axes can be implemented with appropriate transformations in this function.
Link copied to clipboard
Computes major and minor tick values based on the minimum tick spacing and the overall axisLength.