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