labelDisplayMode property

SparkChartLabelDisplayMode? labelDisplayMode
final

Enables the data labels.

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

Defaults to SparkChartDislayMode.none.

@override
Widget build(BuildContext context) {
 return Scaffold(
   body: Center(
       child: SfSparkBarChart(
     labelDisplayMode: SparkChartLabelDisplayMode.high
      )
    ),
 );
}

Implementation

final SparkChartLabelDisplayMode? labelDisplayMode;