Jump to content
We've recently updated our Privacy Statement, available here ×

How to set format for decimals inside the expression of tooltip.pointFormat in HTML5


kashoory
Go to solution Solved by marianol,

Recommended Posts

I am using HTML5 charts in Jasper Studio Professional. I want to set the tooltip to show a whole number and the percentage and set the decimals just for percentage. I found something like this from an example:

<spanstyle="color:{series.color}">{series.name}</span>:<b>{point.y}</b>(<b>{point.percentage:.0f}%</b>)<br/>[/code]

but it does not work correctly. After running the report in Jasperserver AWS, I can see the text "{point.percentage:.0f}%" in the tooltip instead of formatted number!

Anybody knows what is the problem and the solution?

Regards,

Keivan

 

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...