3D Timeseries XY line charts

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Andrew Foss
Posts: 36
Joined: Thu Apr 12, 2007 6:54 am

3D Timeseries XY line charts

Post by Andrew Foss » Fri Aug 08, 2008 5:02 pm

Has anyone done anything with making the line charts 3D?

I'd like to do it and make the line chart w/ a dropshadow, but wanted to be sure I wasn't recreating the wheel here.

thanks,
andrew

Andrew Foss
Posts: 36
Joined: Thu Apr 12, 2007 6:54 am

XY3dLineRenderer

Post by Andrew Foss » Fri Aug 08, 2008 5:13 pm

maybe answered my own question here, looks like in the newer releases there's an XY3DLineRenderer, so maybe good to go, if I can figure out the right 3DPlot to go with it.

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Post by paradoxoff » Sun Aug 10, 2008 12:16 pm

Hi,
do not look any further.
There is no specific "3D plot". All you need is a suitable 3D axis and a renderer which supports 3D.
However, my attempts to generate a 3D XYplot (by using two NumberAxis3D and the XYLine3DRenderer) failed. The data points were rendered using 3D but not the axis. I then checked the sources, and it turned out that NumberAxis3D retrieves the offsets for the 3d effect only if the plot is a CategoryPlot and only if CategoryPlot.getRenderer() returns an instance of Effect3D.
You will probably have to patch NumberAxis3D to get the 3D effect for XYPlots.

Locked