KinChart.bar constructor

const KinChart.bar({
  1. Key? key,
  2. required List<KinChartEntry> entries,
  3. List<KinChartSeries>? series,
  4. double? height,
  5. bool showLabels = true,
  6. bool showValues = false,
  7. bool animate = true,
  8. KinChartGridStyle gridStyle = const KinChartGridStyle(),
  9. KinChartAxisStyle axisStyle = const KinChartAxisStyle(),
  10. KinChartLegendPosition legendPosition = KinChartLegendPosition.none,
  11. double barSpacing = KinSpacing.xs,
  12. double barRadius = KinRadius.pill,
  13. Gradient? barGradient,
  14. double? minValue,
  15. double? maxValue,
  16. ValueChanged<KinChartTooltipData>? onEntryTap,
  17. Widget tooltipBuilder(
    1. KinChartTooltipData data
    )?,
  18. Duration tooltipDuration = const Duration(seconds: 2),
})

Implementation

const KinChart.bar({
  super.key,
  required this.entries,
  this.series,
  this.height,
  this.showLabels = true,
  this.showValues = false,
  this.animate = true,
  this.gridStyle = const KinChartGridStyle(),
  this.axisStyle = const KinChartAxisStyle(),
  this.legendPosition = KinChartLegendPosition.none,
  this.barSpacing = KinSpacing.xs,
  this.barRadius = KinRadius.pill,
  this.barGradient,
  this.minValue,
  this.maxValue,
  this.onEntryTap,
  this.tooltipBuilder,
  this.tooltipDuration = const Duration(seconds: 2),
}) : type = KinChartType.bar,
     lineStyle = KinChartLineStyle.sharp,
     donutWidth = 28.0,
     donutCenter = null;