[resolved] Value Axis Label unreadable

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
hhenrion
Posts: 12
Joined: Fri Mar 07, 2008 9:56 am

[resolved] Value Axis Label unreadable

Post by hhenrion » Mon Jul 07, 2008 9:40 am

Hi!

I am using JFreeChart 1.0.2.
I have many graphs.
I have problem with the graphs witch have a Value Axis Label.
When I resize my graph in order it becomes much wider than high, the characters stretch and overlap and become unreadable.

I have tried to change the police, the size, but it doesn't change anything.

What is strange is that it works well for the Category Axis Label or for the title. (for horizontal characters in fact)

Is there a way to make it more readable?

Thank you.
Last edited by hhenrion on Mon Jul 07, 2008 2:42 pm, edited 1 time in total.

xin
Posts: 3
Joined: Mon Jul 07, 2008 9:15 am

Post by xin » Mon Jul 07, 2008 9:51 am

hi,can you put here an image?I think that I've just resolve this problem!

hhenrion
Posts: 12
Joined: Fri Mar 07, 2008 9:56 am

Post by hhenrion » Mon Jul 07, 2008 10:10 am

Here are two images , the first is ok the second, no :(

Image

Image

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

Post by paradoxoff » Mon Jul 07, 2008 11:14 am

I assume that you have placed the JFreeChart in a ChartPanel. The ChartPanel has the properties [minimum/maximum]Draw[Width/Height] that can be provided in the constructor or later be set by the public setters.
If the size available for the ChartPanel is outside the limits given by these parameters, the the ChartPanel will scale the JFreeChart which clearly reduces the quality and makes the characters look skewed. Try to set the minimum values to 0 and the maximum values to the resolution of your screen. That should avoid the scaling and improve the quality.

hhenrion
Posts: 12
Joined: Fri Mar 07, 2008 9:56 am

Post by hhenrion » Mon Jul 07, 2008 2:42 pm

Thank you paradoxoff, it works fine, now!

Locked