valueToFactor abstract method

double? valueToFactor(
  1. double value
)

Returns converted factor value from the axis value.

The arguments to this method is axis value. The calculated value of the factor should be between 0 and 1. If the axis range from 0 to 100 and pass the axis value is 50, this method return factor value is 0.5. Overriding method, you can modify the factor value based on needs.

Implementation

double? valueToFactor(double value);