configure method

  1. @override
void configure(
  1. Axis<num> axis,
  2. ChartContext context,
  3. GraphicsFactory graphicsFactory
)
override

Implementation

@override
void configure(
  Axis<num> axis,
  ChartContext context,
  GraphicsFactory graphicsFactory,
) {
  super.configure(axis, context, graphicsFactory);

  if (axis is NumericAxis && viewport != null) {
    axis.setScaleViewport(viewport!);
  }

  if (axis is BucketingNumericAxis && threshold != null) {
    axis.threshold = threshold!;
  }

  if (axis is BucketingNumericAxis) {
    axis.showBucket = showBucket;
  }
}