如何定位图例图表标签? [英] How to position legend chart labels?

查看:127
本文介绍了如何定位图例图表标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以更改jasper报告图表周围图例标签的默认位置?目前我创建了以下类型的图表:

Is it possible to change the default positions of the legend labels around the jasper reports charts? Currently I have a following kind of chart being created:

我想将此[hoursNormal,hoursTravel,hoursOvertime] -box从图表下方移动到图表的右侧。我想做的另一件事是用标签月替换这个[hoursNormal,hoursTravel,hoursOvertime] -box。我只是没有看到任何工具在Jasper工作室图表创建向导中移动这些位置,而且对我来说xml看起来像是静态的,我不相信修补它会帮助我。

I would like to move this [hoursNormal, hoursTravel, hoursOvertime]-box from under the chart to the right side of the chart. Another thing I would like to do is to replace this [hoursNormal, hoursTravel, hoursOvertime]-box by label "month". I just don't see any tools for moving these positions in Jasper studio chart creation wizard, and to me also the xml looks like so static that I don't believe tinkering it would help me.

希望我错了,有一个简单的解决方案?

Hopefully I'm wrong and there is a easy solution?

推荐答案

将图例移到右侧,可以在属性视图中找到图表的其他选项。

Move the legend to the right and other option of the chart can be find in the Properties View.

单击图表,查看图表的属性。导航不同的属性标签以设置您需要的内容。

Click the chart, to view Properties for the chart. Navigate the different properties tabs to set what you need.

示例

< a href =https://i.stack.imgur.com/pCbfA.gif =nofollow noreferrer>

如果您需要在图表上使用更多高级功能,则需要使用自定义程序类,请将此示例视为:如何在条形图上设置基准线?

If you need more advanced feature on the chart you need to use a customizer class see this as example: How to put benchmark line on barchart?

这篇关于如何定位图例图表标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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