KinChart.horizontalBar constructor

const KinChart.horizontalBar({
  1. Key? key,
  2. required List<KinChartEntry> entries,
  3. List<KinChartSeries>? series,
  4. double? height,
  5. bool showLabels = true,
  6. bool showValues = true,
  7. bool animate = true,
  8. KinChartGridStyle gridStyle = const KinChartGridStyle(showHorizontalLines: false, showVerticalLines: true),
  9. KinChartAxisStyle axisStyle = const KinChartAxisStyle(showYAxisLabels: true),
  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.horizontalBar({
  super.key,
  required this.entries,
  this.series,
  this.height,
  this.showLabels = true,
  this.showValues = true,
  this.animate = true,
  this.gridStyle = const KinChartGridStyle(
    showHorizontalLines: false,
    showVerticalLines: true,
  ),
  this.axisStyle = const KinChartAxisStyle(showYAxisLabels: true),
  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.horizontalBar,
     lineStyle = KinChartLineStyle.sharp,
     donutWidth = 28.0,
     donutCenter = null;