I have a Highcharts graph similar to the this (http://jsfiddle.net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/area-stacked-percent/).
The only part I have not been able to get working is formatting the percentage values that appear on the tooltip. If I put the below code then the percentage value shows up but it has too many decimal places...
tooltip: {
pointFormat: '<span style="color:{series.color}">{series.name}</span>: <b>{point.percentage}%</b><br/>',
shared: true
}
But if I have I tried to format the value of point.percentage to show less decimal places like so...
{ point.percentage:.1f }%
then only the literal "{point.percentage:.1f}%" shows up in the graph tooltip.
Does anyone have any suggestions on what could be wrong? Is there any other way to format that percentage value other than the above?
Thanks.