javascript - Highcharts repeating same label value on Y Axis -


i have highcharts line graph y axis labels aren't showing decimal place large numbers. if values on 5 digits decimal places fail show means labels show same value.

i know define custom formatter show decimal places chart dynamic , can show lines varying values. series can have integers , need 5 decimal places. don't want have search through series , pass max , min scale axis correctly after loading new series. charts autoscale , show correct labels wrong here? here cut down example of problem: jsfiddle

the y axis has prety basic definiition;

        yaxis: {         max: 33999.253,         min: 33999.219,         title: {             text: 'm',             style: {                 color: '#000000',                 fontweight: 'bold'             }         },         labels: {             style: {                 color: '#000000'             }         }     }, 

as can see when shown y axis labels same. yet when update series (using dataset button) , show different data series lower values decimal places shown. label don't show when scale axis (using autoscale button).

is problem caused margin spacing or there other configuration setting i'm missing?

by default highcharts round labels 2 decimals. can change using yaxis.labels.formatter. see:

        yaxis: {             max: 33999.253,             min: 33999.219,             title: {                 text: 'm',                 style: {                     color: '#000000',                     fontweight: 'bold'                 }             },             labels: {                 formatter: function() {                     return this.value;                 },                 style: {                     color: '#000000'                 }             }         }, 

and demo: http://jsfiddle.net/nzjug/4/


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -