将图例嵌入JFreeChart的绘图区域 [英] Embed the legend into the plot area of JFreeChart

查看:46
本文介绍了将图例嵌入JFreeChart的绘图区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

JFreeChart中,是否可以将图例嵌入图表本身? 可以按如下所示在图表的顶部,底部,左侧,右侧设置图例,但是否可以将其嵌入到图表中?

In JFreeChart, is it possible to embed the legend into the chart itself? Legend can be set on top, bottom, left, right of the chart as follows, but is it possible to imbed it into the chart?

LegendTitle legend=chart.getLegend();
legend.setPosition(RectangleEdge.TOP);

推荐答案

这篇关于将图例嵌入JFreeChart的绘图区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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