简体   繁体   English

Java:Jasper报告图表参数问题

[英]Java: Jasper report chart parameter issue

I have a stacked bar chart which requires a parameter when I add in the value with results it works. 我有一个堆积的条形图,当我在其结果中添加值时需要一个参数。 But when I add in a value in the parameter with no results the entire chart disappears. 但是,当我在没有结果的参数中添加值时,整个图表消失了。 Is there way I can just show the chart with no results if the value, results is empty? 如果值,结果为空,有什么方法可以显示没有结果的图表?

All you have to do is in When No data column, select All Sections,No details . 所有您需要做的就是在“ 无数据时”列中,选择“ 所有部分,无详细信息” To do so, select your report in Report Inspector. 为此,请在“报告检查器”中选择报告。 Right Click and go to Properties. 右键单击并转到属性。 In More section, navigate to When No Data and select All Sections,No details .This will display the chart without values when there is no data. 在“ 更多”部分中,导航到“ 无数据时”,然后选择“ 所有部分,无详细信息” 。这将在没有数据时显示没有值的图表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM