MaterialBarChart constructor

const MaterialBarChart({
  1. Key? key,
  2. required List<BarChartData> data,
  3. required double width,
  4. required double height,
  5. BarChartStyle style = const BarChartStyle(),
  6. bool showGrid = true,
  7. bool showValues = true,
  8. EdgeInsets padding = const EdgeInsets.all(24),
  9. int horizontalGridLines = 5,
  10. VoidCallback? onAnimationComplete,
  11. bool interactive = true,
})

Creates an instance of MaterialBarChart.

Implementation

const MaterialBarChart({
  super.key,
  required this.data,
  required this.width,
  required this.height,
  this.style = const BarChartStyle(),
  this.showGrid = true,
  this.showValues = true,
  this.padding = const EdgeInsets.all(24),
  this.horizontalGridLines = 5,
  this.onAnimationComplete,
  this.interactive = true,
});