KinChart.donut constructor

const KinChart.donut({
  1. Key? key,
  2. required List<KinChartEntry> entries,
  3. double? height,
  4. bool showLabels = true,
  5. bool showValues = false,
  6. bool animate = true,
  7. KinChartLegendPosition legendPosition = KinChartLegendPosition.bottom,
  8. double donutWidth = 28.0,
  9. Widget? donutCenter,
  10. ValueChanged<KinChartTooltipData>? onEntryTap,
  11. Widget tooltipBuilder(
    1. KinChartTooltipData data
    )?,
  12. Duration tooltipDuration = const Duration(seconds: 2),
})

Implementation

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