Suffii
Suffii

Reputation: 5784

Issue on Formatting Highcharts.js yAxis Value

Can you please let me know how I can yaxis value of the chart at This Demo As you can see from the example I Used following formater function

  labels: {
            formatter: function () {
            return this.value;
   },

in yAxis to get rid of the default numericSymbols ['k', 'M', 'G', 'T', 'P', 'E'] byt this also make the numbers to be too long. so I tried the

 format: '{value:.5f}' 

to reduce the integer numbers but it didn't work. Thanks

Upvotes: 1

Views: 92

Answers (2)

Gad
Gad

Reputation: 42306

So from your comments you want to have 100 instead of 100000...

How about simply this:

labels: {
    formatter: function () {
        return this.value / 1000;
    },
    ...
}

Upvotes: 1

ignacio
ignacio

Reputation: 61

It seems like what you want is to modified the following:

    tickInterval: 50000,
    max: 200000    

see updated example: http://jsfiddle.net/HBLCJ/4/

Upvotes: 0

Related Questions