BucketingAxisSpec constructor
BucketingAxisSpec({
- RenderSpec<
num> ? renderSpec, - NumericTickProviderSpec? tickProviderSpec,
- NumericTickFormatterSpec? tickFormatterSpec,
- bool? showAxisLine,
- bool? showBucket,
- num? threshold,
- NumericExtents? viewport,
Creates a NumericAxisSpec that is specialized for percentage data.
Implementation
BucketingAxisSpec({
RenderSpec<num>? renderSpec,
NumericTickProviderSpec? tickProviderSpec,
NumericTickFormatterSpec? tickFormatterSpec,
bool? showAxisLine,
bool? showBucket,
this.threshold,
NumericExtents? viewport,
}) : showBucket = showBucket ?? true,
super(
renderSpec: renderSpec,
tickProviderSpec:
tickProviderSpec ?? const BucketingNumericTickProviderSpec(),
tickFormatterSpec: tickFormatterSpec ??
BasicNumericTickFormatterSpec.fromNumberFormat(
NumberFormat.percentPattern()),
showAxisLine: showAxisLine,
viewport: viewport ?? const NumericExtents(0.0, 1.0));