effectiveDataLabelAlignment method

  1. @override
ChartDataLabelAlignment effectiveDataLabelAlignment(
  1. ChartDataLabelAlignment alignment,
  2. ChartDataPointType position,
  3. ChartElementParentData? previous,
  4. ChartElementParentData current,
  5. ChartElementParentData? next,
)
override

Implementation

@override
ChartDataLabelAlignment effectiveDataLabelAlignment(
  ChartDataLabelAlignment alignment,
  ChartDataPointType position,
  ChartElementParentData? previous,
  ChartElementParentData current,
  ChartElementParentData? next,
) {
  return alignment == ChartDataLabelAlignment.auto
      ? ChartDataLabelAlignment.outer
      : alignment;
}