title: iReport: Calculation of percentage by percentage tool + Graph?
body: <p>I am trying to generate report using iReports on relational database.
  I have to calculate percentage of certain data therefore I used Percentage tool in the Palette. That works perfectly fine for data that is coming in tabular form.</p>
  
  <p>But now I have to generate chart for the same data as well. But that percentage is not getting reflected in graph now. </p>
  
  <p>Percentage tool is generating following expression </p>
  
  <pre><code>new Double( $F{Totalvalue}.doubleValue() / $V{Totalvalue_SUM}.doubleValue() )
  </code></pre>
  
  <p>This expression is working fine for table format data but not for graph, I cann't understand why</p>