1

I've been looking all over, and testing one million things now. I just can't get it to work. I want the numbers to show up as "99 999" instead of "99,999".

Yes, I eventually found "thousandsSep", but it seems to be ignored completely. All my numbers show up as "99,999" even when I have "lang: { thousandsSep: ' ' }" and whatnot.

Please help.

4

1 回答 1

4

数千个对我有用:

    Highcharts.setOptions({
        lang: {
            thousandsSep: ' '
        }
    });

    $('#container').highcharts({
        chart: {
        },
        xAxis: {
            categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
        },
        plotOptions: {
            series: {
                dataLabels: {
                    enabled : true
                }
            }
        },

        series: [{
            data: [10029, 1715, 1006, 1292, 14400, 1760, 135, 1480, 10216, 1194, 1956, 1544]        
        }]
    });

http://jsfiddle.net/FPF2t/

于 2013-09-17T00:08:50.547 回答