如何在jasper报告中生成分页条形图 [英] How can I generate paginated bar chart in jasper report

查看:170
本文介绍了如何在jasper报告中生成分页条形图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要的是,第一页上某些x没有记录的条形图然后是下一页上的下一个x记录,依此类推。
我为此搜索了很多,但没有找到确切的解决方案。是否可以使用Jasper Reports

What i want here is, bar chart for certain x no of records on first page then next x number of records on next page and so on. I searched a lot for this, but didnt found exact solution. Is it even possible with Jasper Reports

推荐答案

您可以使用报告组来完成此操作。

You can do this by using report groups.

在iReport中打开您的报告。

Open your report in iReport.

 1:-Open report and in Report inspector right click and select "Add Report Group"

 2:-Give any name  (eg. splitter) and 
    select "Group by the following expression" and enter
           $V{REPORT_COUNT} - 1 - ( ($V{REPORT_COUNT} - 1) % 3 ). 
  (here 3 means 3 bars in a page)

 Click next and select  Add the group footer.

 3:- Open palette and drag and drop a chart element from the Palette into 
     the report designer on the group footer band. 

 4:- Select Bar Chart, follow the wizard: 
     a:- "Reset type" = Group

     b:- "Reset group" = splitter
               (same name what you gave at the time of Report data set creation)

     c:- add series in Details tab.

查看图表

这篇关于如何在jasper报告中生成分页条形图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆