Changing the depth of the bars in a 3D barchart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
jamesmustain
Posts: 1
Joined: Sun Jan 03, 2021 11:48 am
antibot: No, of course not.

Changing the depth of the bars in a 3D barchart

Post by jamesmustain » Sun Jan 03, 2021 11:51 am

Hi Everybody,

i created a 3d barchart but the bars should be more deeper to make a better 3d impression.

How can i do this? Thanks!

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Changing the depth of the bars in a 3D barchart

Post by david.gilbert » Sun Jan 03, 2021 9:04 pm

The BarRenderer3D class (in older versions of JFreeChart) has the following constructor where you can set the offsets for the 3D effect:

Code: Select all

public BarRenderer3D(double xOffset, double yOffset)
But you should note that these "3D" renderers have been removed from JFreeChart in more recent releases - you can get much better 3D charts using Orson Charts: https://github.com/jfree/orson-charts
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked