formatter - highcharts round decimals for gauge labels -


i have gauge here , can't figure out how round decimals on round label one. enter image description here

tried this:

    title: {         text: when,         style: {             fontsize: fontsizemin + 4 + 'px'         },         formatter: function () {             math.round(this.y * math.pow(10, 1)) / math.pow(10, 1);          }     }, 

but didn't work...

use this:

 highcharts.numberformat(this.y,0) 

example: http://jsfiddle.net/cakqh/24227/


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -