Reputation: 3028
I am crearting one pie chart using Highchart.I stuck on one issue that i cant format value that appearing in tooltip.I want to show only two digits after decimal point.How can i configre this.Attaching one sample along with this.
Upvotes: 1
Views: 937
Reputation: 797
For percentage use:
this.percentage.toFixed(2)
Example: http://jsfiddle.net/jugal/dTMWP/
For other:
Highcharts.numberFormat(this.y,0)
Example: http://jsfiddle.net/CAKQH/24238/
Upvotes: 2
Reputation: 37588
You can use numberFormat
() http://api.highcharts.com/highcharts#Highcharts.numberFormat() or solution introduced https://github.com/highslide-software/highcharts.com/issues/897
Please take look at example which used numberFormat()
Upvotes: 0