KinChart.area constructor

const KinChart.area({
  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. KinChartLineStyle lineStyle = KinChartLineStyle.smooth,
  12. double? minValue,
  13. double? maxValue,
  14. ValueChanged<KinChartTooltipData>? onEntryTap,
  15. Widget tooltipBuilder(
    1. KinChartTooltipData data
    )?,
  16. 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;