AdjustableLabelsChartAreaContainer constructor

AdjustableLabelsChartAreaContainer({
  1. required ChartTopContainer chartTopContainer,
  2. LabelLayoutStrategy? xContainerLabelLayoutStrategy,
})

Implementation

AdjustableLabelsChartAreaContainer({
  required ChartTopContainer chartTopContainer,
  strategy.LabelLayoutStrategy? xContainerLabelLayoutStrategy,
})  : _labelLayoutStrategy = xContainerLabelLayoutStrategy ??
          strategy.DefaultIterativeLabelLayoutStrategy(options: chartTopContainer.data.chartOptions),
      super(
        chartTopContainer: chartTopContainer,
      ) {
  // Must initialize in body, as access to 'this' not available in initializer.
  _labelLayoutStrategy.onContainer(this);
}