effectiveDataLabelAlignment method

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

Implementation

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