CLBarChart<T> constructor

const CLBarChart<T>({
  1. Key? key,
  2. required List<T> data,
  3. required String xValueMapper(
    1. T item,
    2. int index
    ),
  4. required double yValueMapper(
    1. T item,
    2. int index
    ),
  5. Color? barColor,
  6. double barWidth = 18,
  7. double? maxY,
  8. double? minY,
  9. bool showGrid = false,
  10. double? leftAxisInterval,
  11. Widget leftTitleBuilder(
    1. double value,
    2. TitleMeta meta
    )?,
  12. Widget bottomTitleBuilder(
    1. double value,
    2. TitleMeta meta
    )?,
  13. BarTooltipItem? tooltipBuilder(
    1. T item,
    2. int index,
    3. BarChartRodData rod
    )?,
  14. BorderRadius? borderRadius,
  15. bool rotateLabels = true,
  16. 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,
});