KinChart.pie constructor
const
KinChart.pie({
- Key? key,
- required List<
KinChartEntry> entries, - double? height,
- bool showLabels = true,
- bool showValues = false,
- bool animate = true,
- KinChartLegendPosition legendPosition = KinChartLegendPosition.bottom,
- ValueChanged<
KinChartTooltipData> ? onEntryTap, - Widget tooltipBuilder(
- KinChartTooltipData data
- Duration tooltipDuration = const Duration(seconds: 2),
Implementation
const KinChart.pie({
super.key,
required this.entries,
this.height,
this.showLabels = true,
this.showValues = false,
this.animate = true,
this.legendPosition = KinChartLegendPosition.bottom,
this.onEntryTap,
this.tooltipBuilder,
this.tooltipDuration = const Duration(seconds: 2),
}) : type = KinChartType.pie,
series = null,
gridStyle = const KinChartGridStyle(),
axisStyle = const KinChartAxisStyle(),
lineStyle = KinChartLineStyle.sharp,
barSpacing = KinSpacing.xs,
barRadius = KinRadius.pill,
barGradient = null,
donutWidth = 28.0,
donutCenter = null,
minValue = null,
maxValue = null;