labelFormat property

String? labelFormat
final

Formats the date time-axis labels. The labels can be customized by adding desired text to prefix or suffix.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          primaryXAxis: DateTimeAxis(labelFormat: '{value} AM'),
       )
   );
}

Implementation

final String? labelFormat;