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

0

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:

<span
style=\"color:{series.color}\">{series.name}</span>:
<b>{point.y}</b>
(<b>{point.percentage:.0f}%</b>)<br/>

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

kashoory's picture
274
Joined: Apr 23 2014 - 5:19pm
Last seen: 3 months 5 days ago

1 Answer:

0

Are you using JasperServer 5.5 in AWS? Look at this article regarding using formatting functions http://community.jaspersoft.com/wiki/functions-can-be-used-format-html5-... also note at the bottom of the article that talks about a bug on some of the JRS 5.5 builds.

marianol's picture
4575
Joined: Sep 13 2011 - 8:04am
Last seen: 10 months 3 weeks ago

Thanks marianol. I had to use that formatter eventually. It has a bug in it but you can get it working somehow.

kashoory - 5 years 2 months ago
Feedback