Bar<T> constructor
Bar<T> ({
- required List<
T> data, - required BarPosition value,
- required ChartPosition<
T> position, - BarValueFormatter? valueFormatter,
- Offset valueOffset = Offset.zero,
- TextStyle textStyle = const TextStyle(fontSize: 10, color: Colors.black),
- int yAxisPosition = 0,
- double itemWidth = 20,
- Color color = Colors.blue,
- List<
Color> ? colors, - Shader? shader,
- Color? highlightColor = Colors.yellow,
Implementation
Bar({
required super.data,
required this.value,
required this.position,
this.valueFormatter,
this.valueOffset = Offset.zero,
this.textStyle = const TextStyle(fontSize: 10, color: Colors.black),
super.yAxisPosition,
this.itemWidth = 20,
this.color = Colors.blue,
this.colors,
this.shader,
this.highlightColor = Colors.yellow,
});