admin管理员组

文章数量:1434924

I am using highcharts

In case of having numbers in thousands 1000 and greater the chart for example gauge chart the speedometer will display 1k 2k .. not 1000 2000

I think its designed in that way for not displaying full numbers so that it is kept readable

How can i display the full number or any other label instead of k

I am using highcharts

In case of having numbers in thousands 1000 and greater the chart for example gauge chart the speedometer will display 1k 2k .. not 1000 2000

I think its designed in that way for not displaying full numbers so that it is kept readable

How can i display the full number or any other label instead of k

Share Improve this question asked Oct 1, 2014 at 7:38 bob-cacbob-cac 1,3022 gold badges19 silver badges36 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 4

Try adding format parameter so Highcharts won't do its own formatting.

yAxis: {
    labels: {
        format: '{value}'
    }
}

Simply change numericSymbols.

Snippet:

Highcharts.setOptions({
    lang: {
        numericSymbols: [ "A" , "B" , "C" , "D" , "E" , "F"]
    }
});

Example: http://jsfiddle/BlackLabel/7ndqujhq/

本文标签: javascriptHighcharts display full number or any format instead of kStack Overflow