使用 Jfreechart 绘制 3D 图表
是否可以使用 JfreeChart 绘制 3D 图表,如以下链接所示。如果可能,任何人都可以提供一些提示和一些代码片段,说明 Plot 的哪些参数可用于执行此操作。
Is it possible to draw a 3D chart using JfreeChart like in the following link.If possible can anyone give some hints and some snippets of code on what parameters of Plot can be used to do this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
虽然看起来不完全相同,但这是可能的。 最简单的方法是创建一个数据集(
org.jfree.data.general.PieDataset
的后代)并使用org.jfree.chart.ChartFactory
方法之一:您可以然后通过
pieChart
方法进一步自定义您的图表。 例如,以下是如何分解一个饼图部分:It's possible though it won't look exactly the same. The easiest way is to create a dataset (descendant of
org.jfree.data.general.PieDataset
) and use one oforg.jfree.chart.ChartFactory
methods:You can then further customize your chart through
pieChart
methods. For example, here's how to explode one pie section: