daad.madhusudan Posted March 15, 2015 Share Posted March 15, 2015 I am new to jasper repoting and I am creating some sample reports. Here I am sharing the reports that I created using ireport designer. I want the percentage values on the top of individual bar in the bar chart and inside individual slice in pie chart. I couldn't achieve this using ireport designer. I read about using customizers but I couldn't get proper material. Can someone please help me to achieve this? Link to comment Share on other sites More sharing options...
james.t Posted March 16, 2015 Share Posted March 16, 2015 For the pie-chart I added this property via the Show Advanceed Properties button. Note I had a variable which contained the total count which I used to calculat the percentage:plotOptions.pie.dataLabels.formatterTick Use an expression"function() { return ((this.y / " + $V{V_TOTAL_COUNT}.doubleValue() + ") * 100).toFixed(2) + '%';}" Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now