图表中的条件颜色变化
是否可以创建一个条形图,当值为负时使用红色,当值为正时使用绿色? iReport 中的图表中可以进行条件格式化吗?
如果是这样,有人可以建议一种方法吗?
预先感谢您的帮助。
Is it possible to create a bar chart with red colour when the values are negative and green colour when the values are positive? Is Conditional formatting within a chart in iReport possible?
If so, could anyone suggest a way to do it?
Thanks in advance for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我知道这已经很旧了,但也许有人需要它。将绿色图表粘贴到一组中,并将红色图表粘贴到另一组中(更改系列颜色)。
当然,两个图表都连接到同一个查询。然后在每个组的打印表达式中检查 if (num<0) 打印该组,然后在其他组标题的打印表达式中检查 if (num>0) 打印该组
I know this is old but maybe someone needs it. Paste a green chart in one group and paste a red chart in another group( changeing the series color).
Of course both charts are connected to the same query. Then in the print expression of each group check like if (num<0) print this group, then in the other group header's print expression check if (num>0) print this group
我会选择@Rika,
我认为没有办法做到这一点,因为图表是一个完整的对象,你无法单独访问它们。 iReport 有一些局限性,你知道。
I'll go with @Rika
I don't think there is a way to that, 'cuz since the graph is a whole object you don't get to get access to them bars individually. iReport has some limitations, u know.