How to Format Highcharts dataLabels Decimal Points

highcharts

Solution

You need to combine the `dataLabels` formatter and Highcharts.numberFormat:

...
dataLabels: {
    enabled: true,
    formatter: function () {
        return Highcharts.numberFormat(this.y,2);
    }
}
...

See jsFiddle

Problem

Can you please take a look at this example and let me know how I can format the dataLabels to be display only with two decimal numbers? Here is the numver formats which I have in the series ``` series: [{ name: 'Tokyo', data: [7.554555, 6.34345559, 9.5555, 14.5555, 18.4333433, 21.5555, 25.2, 26.5333333, 23.33333, 18.23243543, 13.776565669, 9.65454656] }, { name: 'London', data: [3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8] }] ``` and I would like to present them like 7.55 , 6.34, 9.55 . Thanks

Original source