KinChart class
Constructors
-
KinChart({Key? key, List<KinChartEntry> entries = const [], List<KinChartSeries>? series, KinChartType type = KinChartType.bar, 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.sharp, double barSpacing = KinSpacing.xs, double barRadius = KinRadius.pill, double donutWidth = 28.0, Widget? donutCenter, Gradient? barGradient, double? minValue, double? maxValue, ValueChanged<KinChartTooltipData>? onEntryTap, Widget tooltipBuilder(KinChartTooltipData data)?, Duration tooltipDuration = const Duration(seconds: 2)})
-
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)})
-
const
-
KinChart.bar({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, double barSpacing = KinSpacing.xs, double barRadius = KinRadius.pill, Gradient? barGradient, double? minValue, double? maxValue, ValueChanged<KinChartTooltipData>? onEntryTap, Widget tooltipBuilder(KinChartTooltipData data)?, Duration tooltipDuration = const Duration(seconds: 2)})
-
const
-
KinChart.donut({Key? key, required List<KinChartEntry> entries, double? height, bool showLabels = true, bool showValues = false, bool animate = true, KinChartLegendPosition legendPosition = KinChartLegendPosition.bottom, double donutWidth = 28.0, Widget? donutCenter, ValueChanged<KinChartTooltipData>? onEntryTap, Widget tooltipBuilder(KinChartTooltipData data)?, Duration tooltipDuration = const Duration(seconds: 2)})
-
const
-
KinChart.horizontalBar({Key? key, required List<KinChartEntry> entries, List<KinChartSeries>? series, double? height, bool showLabels = true, bool showValues = true, bool animate = true, KinChartGridStyle gridStyle = const KinChartGridStyle(showHorizontalLines: false, showVerticalLines: true), KinChartAxisStyle axisStyle = const KinChartAxisStyle(showYAxisLabels: true), KinChartLegendPosition legendPosition = KinChartLegendPosition.none, double barSpacing = KinSpacing.xs, double barRadius = KinRadius.pill, Gradient? barGradient, double? minValue, double? maxValue, ValueChanged<KinChartTooltipData>? onEntryTap, Widget tooltipBuilder(KinChartTooltipData data)?, Duration tooltipDuration = const Duration(seconds: 2)})
-
const
-
KinChart.line({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)})
-
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)})
-
const