labelFormatX property

String Function(double label) labelFormatX
final

The formatting function used to display the labels in X axis. If none is specified, it by default uses NumberFormat.compact to format label values into string. You might want to override this for example if you want the label to be a date.

Label values are calculated arithmetically, so the produced value is double. If you want custom label formatting, for example to include units or converts seconds into human-readable date, you should supply this function.

Implementation

final String Function(double label) labelFormatX;