BarChartWidget constructor

const BarChartWidget({
  1. Key? key,
  2. required List<ChartDataSet> dataSets,
  3. double barWidth = 20.0,
  4. double borderRadius = 8.0,
  5. bool barRounded = true,
  6. bool showGrid = true,
  7. bool showAxis = true,
  8. bool showLabel = true,
  9. String? title,
  10. String? subtitle,
  11. Widget? header,
  12. Widget? footer,
  13. bool isGrouped = false,
  14. BarCallback? onBarTap,
  15. BarHoverCallback? onBarHover,
  16. bool isLoading = false,
  17. bool isError = false,
  18. double? height,
  19. EdgeInsets? padding,
  20. EdgeInsets? margin,
  21. ChartsConfig? config,
  22. int? xAxisLabelRotation,
  23. int? yAxisLabelRotation,
})

Implementation

const BarChartWidget({
  super.key,
  required this.dataSets,
  this.barWidth = 20.0,
  this.borderRadius = 8.0,
  this.barRounded = true,
  this.showGrid = true,
  this.showAxis = true,
  this.showLabel = true,
  this.title,
  this.subtitle,
  this.header,
  this.footer,
  this.isGrouped = false,
  this.onBarTap,
  this.onBarHover,
  this.isLoading = false,
  this.isError = false,
  this.height,
  this.padding,
  this.margin,
  this.config,
  this.xAxisLabelRotation,
  this.yAxisLabelRotation,
});