Highcharts : Point Formatting not working -


i have highcharts graph similar (http://jsfiddle.net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/area-stacked-percent/).

the part have not been able working formatting percentage values appear on tooltip. if put below code percentage value shows has many decimal places...

tooltip: {     pointformat: '<span style="color:{series.color}">{series.name}</span>: <b>{point.percentage}%</b><br/>',     shared: true } 

but if have tried format value of point.percentage show less decimal places so...

{ point.percentage:.1f }% 

then literal "{point.percentage:.1f}%" shows in graph tooltip.

does have suggestions on wrong? there other way format percentage value other above?

thanks.

you can use tooltip formatter , use highcharts.numberformat()


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -