Stacked BarRenderer Problem

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Tobi
Posts: 12
Joined: Fri Jul 30, 2004 4:12 pm
Location: Black Forrest, Germany
Contact:

Stacked BarRenderer Problem

Post by Tobi » Mon Aug 09, 2004 9:37 am

Hello,

i'have created a stacked bar chart, but the bar is moving out of the data area. I use mapDatasetToRangeAxis() to organize the size of the Axis, but it seems that this doesnt't work with stacked bar charts? Is it so, or am i doing something wrong?

Greetings,

Tobi

Tobi
Posts: 12
Joined: Fri Jul 30, 2004 4:12 pm
Location: Black Forrest, Germany
Contact:

Post by Tobi » Mon Aug 09, 2004 12:39 pm

Here is an example whats not correct:

Image

When i use standard BarRenderer3D the size of each bar fits. But when i paint 3 bars stacked and the other "normal" the size of the Range Axis fits to the largest bar, but not to the largest stacked bar.

How can i fix this problem?

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

Post by david.gilbert » Tue Aug 10, 2004 9:25 am

I have a vague recollection of fixing a problem like this in the last couple of months, but I can't find any reference to it. The best thing to do is post a small demo application that reproduces the problem and tell me which version of JFreeChart you are using.
David Gilbert
JFreeChart Project Leader

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

Guest

Post by Guest » Tue Aug 10, 2004 11:54 am

Hi,

i implemented a new version of the method which recalculates the Range of the Axis. And it works fine now.

Locked