NumberAxis Label too small

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
new2jfree2011
Posts: 4
Joined: Tue Dec 13, 2011 4:59 pm
antibot: No, of course not.

NumberAxis Label too small

Post by new2jfree2011 » Thu Jan 12, 2012 6:53 pm

I am using 1.0.11 Jfreechart. I created a small horizontal barchart (300x70) with only one bar, The labels for the NumberAxis are too small for viewing. It seems like the numbers are squished. When increasing the font size, the numbers are bigger, but unless I make the chart height big enough (300 x 150), then the lables will look normal, but I really don't want to increase the height.

I know the space allocated for the labels is calculated somehow, is there a way to change the calcuation for the space of the labels? So I can use the default font size label, and have half of the space for the bar and half for the labels?

Thanks.

Locked