How to truncate the value after decimal after the cursor placed on a part of a pie chart ?

when the cursor is placed on a part of a pie chart a value is shown i want to reduce it or round off the digits after the decimal to two digits.

sangmesh.kotalwar's picture
Joined: Apr 15 2023 - 1:54am
Last seen: 3 months 2 weeks ago

Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times.

arai_4 - 5 months 2 weeks ago

1 Answer:

Hello Sangmesh,

 

Please refer to the below link to format the decimals of the tooltip. You will need to add the formatted function in plotOptions.series.tooltip.formatter in the advanced properties of the HTML5 chart. 

 

https://community.jaspersoft.com/wiki/html5-charts-custom-formatting-how...

 

Also, to use the highcharts functions, you will need to configure your Studio and Jasperserver as given in the below link for the functions to work. 

 

https://community.jaspersoft.com/wiki/using-functions-html5-charts-highc...

abhujbal's picture
1019
Joined: Nov 10 2020 - 8:27am
Last seen: 16 hours 19 min ago
Feedback