MaterialBarChart constructor
const
MaterialBarChart({
- Key? key,
- required List<
BarChartData> data, - required double width,
- required double height,
- BarChartStyle style = const BarChartStyle(),
- bool showGrid = true,
- bool showValues = true,
- EdgeInsets padding = const EdgeInsets.all(24),
- int horizontalGridLines = 5,
- VoidCallback? onAnimationComplete,
- 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,
});