最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Highcharts display full number or any format instead of k - Stack Overflow

programmeradmin1浏览0评论

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/

发布评论

评论列表(0)

  1. 暂无评论