Let's say your data represents some duration. In this case, instead of showing simple numbers on the Y axis you might want to have a formatted duration which would be easier to understand. For example, instead of "190 s" (190 seconds) you can have "03:10" or "03 m 10 s".
To enable this feature, you should simply specify the unit of your durations of your data. If your data represents seconds, the unit will be "ss", minutes - "mm", hours - "hh", days - "DD".
The unit is set here:
<charts> <chart> <values> <y_left> <duration>ss</duration>
(you can use y_right instead of y_left, depends on the axis you use).
That might be enough if you are happy with the default formatting of the duration. If you want to change it, you should simply adjust values in the following settings:
<strings> <duration_units> <ss></ss> <mm></mm> <hh></hh> <DD></DD> </duration_units> </strings>
| © Antanas Marcelionis Contact and feedback: info@amcharts.com | Subscribe to amCharts news |