BucketingNumericTickProviderSpec constructor
const
BucketingNumericTickProviderSpec({})
Creates a TickProviderSpec
that generates ticks for a bucketing axis.
zeroBound
automatically include zero in the data range.
dataIsInWholeNumbers
skip over ticks that would produce
fractional ticks that don't make sense for the domain (ie: headcount).
desiredTickCount
the fixed number of ticks to try to make. Convenience
that sets desiredMinTickCount
and desiredMaxTickCount
the same.
Both min and max win out if they are set along with
desiredTickCount
.
desiredMinTickCount
automatically choose the best tick
count to produce the 'nicest' ticks but make sure we have this many.
desiredMaxTickCount
automatically choose the best tick
count to produce the 'nicest' ticks but make sure we don't have more
than this many.
Implementation
const BucketingNumericTickProviderSpec(
{bool? zeroBound,
bool? dataIsInWholeNumbers,
int? desiredTickCount,
int? desiredMinTickCount,
int? desiredMaxTickCount})
: super(
zeroBound: zeroBound ?? true,
dataIsInWholeNumbers: dataIsInWholeNumbers ?? false,
desiredTickCount: desiredTickCount,
desiredMinTickCount: desiredMinTickCount,
desiredMaxTickCount: desiredMaxTickCount,
);