JFreeChart是否支持三维图 [英] Does JFreeChart have support for three dimensional charts

查看:40
本文介绍了JFreeChart是否支持三维图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每个人都知道 JFreeChart 支持2-D(X,Y)图表,但是我有一个程序需要3-D(X,Y,Z),4-D(X,Y,Z,E)…最多六个维度.例如,我的2D(X,Y)输入数据如下所示:

As Every one knows JFreeChart supports 2-D (X,Y) charts, but I have a program that needs 3-D (X,Y,Z), 4-D (X,Y,Z,E) … up to six dimensions. For example, my input data looks like this for 2D (X,Y):


(0.611787,2.304051)       
(1.636265 ,2.261579)       
(1.073176 ,1.188980) 

如果我有3D(X,Y,Z),它看起来像这样:

If I have 3D (X,Y,Z), it looks like this:


(0.142197 ,1.440918 ,0.217366)       
(0.149352 ,0.748124 ,3.214357)       
(0.536232 ,0.107004 ,4.198831)    

如果我有四列,则表示是4-D,并且可能会增加到6-D.如果 JFreeChart 支持3-D,我需要一些帮助和建议.如果不是,是否有任何其他类似于 JfreeChart 的软件可以与Java代码集成.

If I have four columns, it means 4-D, and may increase to 6-D. I need some help and suggestions if JFreeChart supports 3-D. If not, is there any other software similar to JfreeChart that can be integrated with Java code.

推荐答案

JFreeChart 包含 XYZDataset 接口,实现类适用于三维数据.由您的程序决定如何最好地显示第三维.例如, XYBlockRenderer 使用 PaintScale ,而其他方案使用 XYZToolTipGenerator XYZURLGenerator .AFAIK,不支持更大尺寸.

JFreeChart includes the XYZDataset interface, and implementing classes are suitable for three dimensional data. It's up to your program to determine how best to display the third dimension. For example, XYBlockRenderer uses a PaintScale, while other schemes use XYZToolTipGenerator or XYZURLGenerator. AFAIK, higher dimensions are not supported.

这篇关于JFreeChart是否支持三维图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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