UColumnChart constructor

const UColumnChart({
  1. required List<ChartData> data,
  2. ChartLegendPosition legendPosition = ChartLegendPosition.top,
  3. ChartOverflowMode overflowMode = ChartOverflowMode.wrap,
  4. bool showLegend = true,
  5. bool enableTooltip = true,
  6. double animationDuration = 1000,
  7. double spacing = 0.2,
  8. CategoryAxis xAxis = const CategoryAxis(),
  9. NumericAxis yAxis = const NumericAxis(),
  10. DataLabelSettings dataLabelSettings = const DataLabelSettings(isVisible: true, labelAlignment: ChartDataLabelAlignment.top),
  11. Key? key,
})

Implementation

const UColumnChart({
  required this.data,
  this.legendPosition = ChartLegendPosition.top,
  this.overflowMode = ChartOverflowMode.wrap,
  this.showLegend = true,
  this.enableTooltip = true,
  this.animationDuration = 1000,
  this.spacing = 0.2,
  this.xAxis = const CategoryAxis(),
  this.yAxis = const NumericAxis(),
  this.dataLabelSettings = const DataLabelSettings(isVisible: true, labelAlignment: ChartDataLabelAlignment.top),
  super.key,
});