Jasper Reports,根据图表中的数据扩展范围
有没有办法根据甘特图中显示的数据量调整区域大小?如果有帮助的话,我可以获得图表中的行数。看来应该有办法解决这个问题。
换句话说,如何在 JasperReports 中动态调整图表大小?
Is there a way to get a band to resize based on the amount of data presented in a gantt chart? I can get the number of rows that are in the chart, if that helps. It seems like there should be a way around this.
In otherwords, how does one dynamically resize a chart in JasperReports?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决方案是在图表旁边放置一个文本带并估计适当的高度,使用脚本生成足够的文本,最终接近正确的高度。在文本框中,拉伸超大尺寸,条带将会增加。将图表拉伸至条带高度。
The solution to this is to put a text band right beside the chart and estimate the appropriate height, use a scriptlet to generate enough text that would end up being close to the right height. On the text box, stretch on oversize, and the band will increase. Stretch the chart to the band height.