CLBarChart<T> constructor
const
CLBarChart<T> ({
- Key? key,
- required List<
T> data, - required String xValueMapper(
- T item,
- int index
- required double yValueMapper(
- T item,
- int index
- Color? barColor,
- double barWidth = 18,
- double? maxY,
- double? minY,
- bool showGrid = false,
- double? leftAxisInterval,
- Widget leftTitleBuilder(
- double value,
- TitleMeta meta
- Widget bottomTitleBuilder(
- double value,
- TitleMeta meta
- BarTooltipItem? tooltipBuilder(
- T item,
- int index,
- BarChartRodData rod
- BorderRadius? borderRadius,
- bool rotateLabels = true,
- double rotateThreshold = 400,
Implementation
const CLBarChart({
super.key,
required this.data,
required this.xValueMapper,
required this.yValueMapper,
this.barColor,
this.barWidth = 18,
this.maxY,
this.minY,
this.showGrid = false,
this.leftAxisInterval,
this.leftTitleBuilder,
this.bottomTitleBuilder,
this.tooltipBuilder,
this.borderRadius,
this.rotateLabels = true,
this.rotateThreshold = 400,
});