Hi Bart,
Greetings from Syncfusion. We have analyzed your requirement and you can for the axis labels using the numberFormat property of the numeric axis. For more information on this, find the user guide below.
Also, you can customize the axis labels using the onAxisLabelRender event. This event will be triggered for each axis label and using your makeReadable method you can customize based on your scenario. We have prepared a sample in which we have customized the y-axis with numberFormat property and for the x-axis, we have customized using the onAxisLabelRender event.
|
SfCartesianChart(
onAxisLabelRender: (AxisLabelRenderArgs args) {
if (args.axisName == 'primaryXAxis') {
args.text = 'Jan';
}
},
primaryYAxis: NumericAxis(
numberFormat: NumberFormat.decimalPercentPattern()
),
// Other configurations
)
|
The sample for reference can be found below.
Thanks,
Dharani.