createTickProvider method

  1. @override
BucketingNumericTickProvider createTickProvider(
  1. ChartContext context
)
override

Implementation

@override
BucketingNumericTickProvider createTickProvider(ChartContext context) {
  final provider = BucketingNumericTickProvider()
    ..zeroBound = zeroBound!
    ..dataIsInWholeNumbers = dataIsInWholeNumbers!;

  if (desiredMinTickCount != null ||
      desiredMaxTickCount != null ||
      desiredTickCount != null) {
    provider.setTickCount(desiredMaxTickCount ?? desiredTickCount ?? 10,
        desiredMinTickCount ?? desiredTickCount ?? 2);
  }
  return provider;
}