设置图表的标签和值
我正在使用 JFreeChart
创建饼图,并且我想像在 iReport
中一样单独设置值和标签。换句话说,我希望图表在饼图上显示与图例中不同的结果。有什么办法可以实现这个目标吗?
I am creating pie charts using JFreeChart
, and I want to set the value and the label seperately like in iReport
. In other words, I want the chart to show different results on the pie than in the legend. Is there any way that I can achieve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
MessageFormat
ArgumentIndex 值对应于系列名称、域和范围。您可以为每个系列或基础中的所有系列设置不同的生成器。附录:对于
PiePlot
,值的含义略有不同 - 系列名称、值和百分比 - 如图所示此处。The
MessageFormat
ArgumentIndex values correspond to the series name, domain and range. You can set a different generator for each series or for all series in the base.Addendum: For
PiePlot
, the values have a slightly different meaning—series name, value and percentage—as shown here.