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.
[resolved] Value Axis Label unreadable
[resolved] Value Axis Label unreadable
Last edited by hhenrion on Mon Jul 07, 2008 2:42 pm, edited 1 time in total.
-
- Posts: 1634
- Joined: Sat Feb 17, 2007 1:51 pm
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.
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.