How to Show Labels with % in HTML5 Charts

Posted on by By admin, in Jaspersoft | 0

In the Pie chart labels to show values with %, we need to follow these steps

  1. Open the report in Jasper studio
  2. Right click on chart and edit the chart properties
  3. Click on Data Configuration and In Categories levelclick “add”
  4. Enter the name and expression
  5. In the Expression add this code to show value with %
    $F{paymentmode}+“”+(new BigDecimal($F{success}.intValue()).divide(new BigDecimal($F{total_txncount}.intValue()),4,BigDecimal.ROUND_HALF_UP).multiply(new
    BigDecimal(100)).divide(new BigDecimal(“1”),2,BigDecimal.ROUND_HALF_UP))+“%”
  6. Click on finish
  7. In the ‘Measures’ section click on Add
  8. Click on OK
  9. Run the report and see the changes
logo

Best Open Source Business Intelligence Software Helical Insight is Here

logo

A Business Intelligence Framework

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments