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: SfSparkAreaChart(
     labelDisplayMode: SparkChartLabelDisplayMode.high,
      )
    ),
 );
}

Implementation

final SparkChartLabelDisplayMode? labelDisplayMode;