PercentAxisSpec constructor
PercentAxisSpec({
- RenderSpec<
num> ? renderSpec, - NumericTickProviderSpec? tickProviderSpec,
- NumericTickFormatterSpec? tickFormatterSpec,
- bool? showAxisLine,
- NumericExtents? viewport,
Creates a NumericAxisSpec that is specialized for percentage data.
Implementation
PercentAxisSpec({
super.renderSpec,
NumericTickProviderSpec? tickProviderSpec,
NumericTickFormatterSpec? tickFormatterSpec,
super.showAxisLine,
NumericExtents? viewport,
}) : super(
tickProviderSpec: tickProviderSpec ??
const BasicNumericTickProviderSpec(dataIsInWholeNumbers: false),
tickFormatterSpec: tickFormatterSpec ??
BasicNumericTickFormatterSpec.fromNumberFormat(
NumberFormat.percentPattern(),
),
viewport: viewport ?? const NumericExtents(0.0, 1.0),
);