score:1

Accepted answer

You will need to use the highcharts formatter callback feature to achieve this since that format is nonstandard.

Note that is has nothing to do with php whatsoever. You just provide your values to highcharts as plain floating-point values and reformat them there for display as necesary (otherwise you'll either waste your time or run into problems in your graph, such as values not being ordered properly).

A few such properties in highcharts are :

http://api.highcharts.com/highcharts/xAxis.labels.formatter http://api.highcharts.com/highcharts/legend.labelFormatter http://api.highcharts.com/highcharts/tooltip.formatter

In any case, your callback function would have to get the floating-point number value, convert it to a string, and pad any number of zeroes to the right until it is the right length.


Related Query

More Query from same tag