I see there have been numerous discussions around the problem of keeping a constant ratio between the units on the x and y-axes for a JFreeChart.
Since I draw a lot of vectors I need to deal with this problem both a) Initial size (since a sudden legend changes it) and b) Allow user to resize
I want to check the community if there has been established a method doing this supported in the API or do we all have our own workarounds ?
Thanx for a great product
B-)
Constant ratio between the units on the x and y-axis
-
- Posts: 25
- Joined: Thu Apr 03, 2008 5:51 pm
- Location: Houston, TX, USA
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: Constant ratio between the units on the x and y-axis
I've had one go at this in the past and failed to find a good solution. The problem is that the data area size is determined after the space for the axis labels has been allocated...and if you then change the range of one of the axes then you may change the axis labeling which gets you into a loop.
I would like to find some solution for this, as I'd like to support map based charts and that requires some control over the ratio of the x and y values. But right now I'm busy with some work for a client so it will have to wait. But I'll try to follow the discussion if others have ideas and suggestions (there is something in the patch database I think, and one or two other proposals have been posted in the forum...I think).
I would like to find some solution for this, as I'd like to support map based charts and that requires some control over the ratio of the x and y values. But right now I'm busy with some work for a client so it will have to wait. But I'll try to follow the discussion if others have ideas and suggestions (there is something in the patch database I think, and one or two other proposals have been posted in the forum...I think).
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program