score:14

Accepted answer

use thousand separator in lang

$(function () {
highcharts.setoptions({

    lang: {
      decimalpoint: '.',
      thousandssep: ','
    }
});

and in tooltip- formatter use like

   tooltip: {
             pointformat: '<b>{point.x} :</b>' + 'count: <b>{point.y:,.0f}</b>',

            shared: true,
            usehtml: true
        }

updated fiddle with separator without decimal point

score:2

use highcharts.numberformat() in point.x or point.y

example:

tooltip: {
  enabled: true,
  split: true,
  shared: true,
  formatter: function () {
    // the first returned item is the header, subsequent items are the points
    return [highcharts.dateformat("%y-%m-%d %h:%m:%s", this.x)].concat(
      this.points
        ? this.points.map(function (point) {
            return (
              point.series.name +
              ": " +
              // numberformat(data, decimal)
              highcharts.numberformat(point.y, 2)
            );
          })
        : []
    );
  },
},

score:5

just following nishith kant chaturvedi's answer, and since there is no jsfiddle example available, here you can see how to implement that answer.

highcharts.setoptions({
    lang: {
      decimalpoint: '.',
      thousandssep: ','
    }
});

highcharts.chart('container', {
    chart: {
        type: 'column'
    },
    title: {
        text: ''
    },
    xaxis: {
        categories: ['salary']
    },
    yaxis: {
        title: {
            text: ''
        },
        stacklabels: {
            enabled: true,
            format: '{total:,.2f} $us'
        },
        labels: {
            format: "{value:,.2f} $us",
        }
    },
    legend: {
        backgroundcolor: (highcharts.theme && highcharts.theme.background2) || 'white',
        bordercolor: '#ccc',
        borderwidth: 1,
    },
    tooltip: {
        headerformat: '<b>{point.x}</b><br/>',
        pointformat: '{series.name}: {point.y}<br/>total: {point.stacktotal}'
    },
    plotoptions: {
        column: {
            stacking: 'normal',
            datalabels: {
                    format: '{point.y:,.2f} $us',
                enabled: true,
                color: (highcharts.theme && highcharts.theme.datalabelscolor) || 'white',
            }
        }
    },
    series: [{
            type: 'column',
        name: 'tomas',
        data: [60000]
    }, {
            type: 'column',
        name: 'amy',
        data: [18000]
    }, {
            type: 'column',
        name: 'jenny',
        data: [85000]
    }]
});

http://jsfiddle.net/zrc5skly/


Related Query

More Query from same tag