BarChart<T> constructor
const
BarChart<T> ({
- Key? key,
- Widget? child,
- Color upperColor = Colors.red,
- Color fairColor = Colors.black45,
- Color lowerColor = Colors.green,
- double strokeWidth = 1,
- PaintingStyle upperStyle = PaintingStyle.fill,
- PaintingStyle fairStyle = PaintingStyle.fill,
- PaintingStyle lowerStyle = PaintingStyle.fill,
- Color crossLineColor = Colors.red,
- double crossLineWidth = 0.5,
- TextStyle textStyle = const TextStyle(color: Colors.black, fontSize: 8),
- bool showText = true,
- double paddingTop = 0,
- Color gridLineColor = Colors.black12,
- double gridLineWidth = 0.5,
- int gridHorizontalGrids = 3,
- int gridVerticalGrids = 3,
- required List<
double> transform(- List<
T> values
- List<
- required BarStyle transformBarStyle(
- T item
Implementation
const BarChart({
super.key,
super.child,
this.upperColor = Colors.red,
this.fairColor = Colors.black45,
this.lowerColor = Colors.green,
this.strokeWidth = 1,
this.upperStyle = PaintingStyle.fill,
this.fairStyle = PaintingStyle.fill,
this.lowerStyle = PaintingStyle.fill,
this.crossLineColor = Colors.red,
this.crossLineWidth = 0.5,
this.textStyle = const TextStyle(color: Colors.black, fontSize: 8),
this.showText = true,
this.paddingTop = 0,
this.gridLineColor = Colors.black12,
this.gridLineWidth = 0.5,
this.gridHorizontalGrids = 3,
this.gridVerticalGrids = 3,
required this.transform,
required this.transformBarStyle,
});