Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display the value instead of percentage in a pie chart using jquery Highcharts

Fixed, Just Changed below line

  format: '<b>{point.name}</b>: {point.percentage:.1f} %',

to

  format: '<b>{point.name}</b>: {point.y:.1f} Rs.',

return '<b>'+ this.point.name +'</b>: '+ this.y +' clicks';

In this case you can replace "this.percentage" to "this.point.y"

Look at formatter: (old link removed), new link - https://api.highcharts.com/highcharts/tooltip.formatter