valueToFactor method

  1. @override
double? valueToFactor(
  1. double value
)
override

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

@override
double? valueToFactor(double value) {
  return null;
}