createCommonChart method

  1. @override
OrdinalCartesianChart createCommonChart(
  1. BaseChartState chartState
)
override

Creates and returns a common.BaseChart.

Implementation

@override
common.OrdinalCartesianChart createCommonChart(BaseChartState chartState) {
  // Optionally create primary and secondary measure axes if the chart was
  // configured with them. If no axes were configured, then the chart will
  // use its default types (usually a numeric axis).
  return new common.OrdinalCartesianChart(
      layoutConfig: layoutConfig?.commonLayoutConfig,
      primaryMeasureAxis: primaryMeasureAxis?.createAxis(),
      secondaryMeasureAxis: secondaryMeasureAxis?.createAxis());
}