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
1 Answer:
Posted on June 16, 2014 at 1:43pm
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.
Thanks marianol. I had to use that formatter eventually. It has a bug in it but you can get it working somehow.