How do I move the catagory label .....

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
rkhlin
Posts: 10
Joined: Tue Apr 06, 2004 1:12 am

How do I move the catagory label .....

Post by rkhlin » Tue Apr 06, 2004 1:38 am

Hi Guys,

I had a horizontal bar chart.
In the previous version, I had my category label right next to the left edge, and all the tick labels are no wrap (in 1 line).
When I upgrade to 0.9.17, there is a space between the left edge to my category label, and most of tick labels are wrapped to 2 lines. How can I get back to where it was?
I do buy the developer guide every time. But I think, if David can put more diagrams to show as an example, that'd be a great help.

Please tell me how to achieve that.

Thanks,
Richard Lin[/img]

havfrue
Posts: 29
Joined: Mon Nov 03, 2003 4:49 pm

Tick Label wrapping in bar charts in new version

Post by havfrue » Thu Apr 15, 2004 6:53 am

I have the same problem: the y tick labels wrap with this new version (not the old one). (I have a TaskSeriesCollection and the y axis is a category axis).
Why? And will it be fixed soon?

Elisabeth :-)

fifi38

Post by fifi38 » Tue Apr 20, 2004 1:46 pm

I've the same problem. :(
any idea ?

havfrue
Posts: 29
Joined: Mon Nov 03, 2003 4:49 pm

setMaxCategoryLabelWidthRatio

Post by havfrue » Tue Apr 20, 2004 1:51 pm

I used the setMaxCategoryLabelWidthRatio to temporarily fix this problem...
categoryaxis.setMaxCategoryLabelWidthRatio(0.01f);
This is not a very good solution though, since it is hard I don't know what this ratio should be.. Setting the value equal to 0.01 made all my charts look fine.

fifi38

Post by fifi38 » Tue Apr 20, 2004 2:50 pm

Thank you havfrue,

I try to adjust my labels but it's not easy because my they have different size and their number change each time !! :(

I hope this bug will be corrected quickly.

Locked