secondaryMeasureFormatter property
set
secondaryMeasureFormatter
(MeasureFormatter? formatter)
Formatter for measure values of series that uses the secondary axis.
This is optional. The default formatter formats measure values with NumberFormat.decimalPattern. If the measure value is null, a dash is returned.
Implementation
set secondaryMeasureFormatter(MeasureFormatter? formatter) {
legendEntryGenerator.secondaryMeasureFormatter =
formatter ?? defaultLegendMeasureFormatter;
}