最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

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

matteradmin6PV0评论

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/

Post a comment

comment list (0)

  1. No comments so far