ChartLegendScope constructor

const ChartLegendScope({
  1. Key? key,
  2. required List<ChartDataSet> dataSets,
  3. required Widget builder(
    1. BuildContext context,
    2. List<ChartDataSet> visibleDataSets
    ),
  4. ChartVisibilityController? controller,
  5. LegendPosition position = LegendPosition.bottom,
  6. double spacing = 12.0,
  7. ChartTheme? theme,
  8. String seriesLabelFor(
    1. Color color,
    2. List<ChartDataSet> group
    )?,
  9. bool showLegend = true,
})

Implementation

const ChartLegendScope({
  super.key,
  required this.dataSets,
  required this.builder,
  this.controller,
  this.position = LegendPosition.bottom,
  this.spacing = 12.0,
  this.theme,
  this.seriesLabelFor,
  this.showLegend = true,
});