Hi Peter,
Unluckily, there is no Axis.getLabelFormat API. If you need the format string, your code will need to remember the string you use in Axis.setLabelFormat.
Note that in many cases, the axis label format is not suitable for track cursors. It is because the axis labels are usually "nice numbers". For exmaple, suppose the data are from 1.079 to 5.481. The axis labels might be [0, 1, 2, 3, 4, 5, 6]. That means the axis labels may be formatted with no decimal place, even though your data have decimal places. It may be desirable for the track cursor labels to use a different format string that accurately display the data values with decimal places.
For your case, you may try to use a generic format (such as {value|P4} for numeric values), or you may need to specify a different format string for different charts.
Regards
Peter Kwan |