labelDisplayMode property

SparkChartLabelDisplayMode? labelDisplayMode
final

Enables the data labels.

Data labels are used to provide information about the exact point location and its value.

Also refer SparkChartLabelDisplayMode.

Defaults to SparkChartDislayMode.none.

@override
Widget build(BuildContext context) {
 return Scaffold(
   body: Center(
       child: SfSparkLineChart(
     labelDisplayMode: SparkChartLabelDisplayMode.high,
     data: <double>[18, 24, 30, 14, 28],
   )),
 );
}

Implementation

final SparkChartLabelDisplayMode? labelDisplayMode;