TBarChart constructor

const TBarChart({
  1. Key? key,
  2. required String title,
  3. required List<ChartData> data,
  4. VoidCallback? optionTap,
  5. bool showLegends = true,
  6. bool showOption = true,
  7. Axis direction = Axis.horizontal,
  8. double? height = 300,
  9. Color? barColor,
})

Creates a TBarChart widget.

Implementation

const TBarChart({
  super.key,
  required this.title,
  required this.data,
  this.optionTap,
  this.showLegends = true,
  this.showOption = true,
  this.direction = Axis.horizontal,
  this.height = 300,
  this.barColor,
});