labels overlap legend

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Bryan Sampieri

labels overlap legend

Post by Bryan Sampieri » Mon Jan 06, 2003 3:42 pm

I have this problem that appears to be with fonts in labels on Unix systems. I'm using the charts with servlets, and when I generate a chart on a Windows server, things look fine. But on Unix systems, the date labels on my horizontal axis (the labels draw vertically, which is correct) sometimes either get chopped off or if there is a legend on the bottom, they might overlap the legend. Has anyone got a solution to this? Changing fonts somehow or whatever?

David Gilbert

Re: labels overlap legend

Post by David Gilbert » Tue Jan 07, 2003 11:54 am

In the code I assume that the width of the horizontal text will be the same as the height required when the text is rotated 90 degrees. That might be the source of the problem, but I'm not sure why the behaviour is different between Windows and Unix.

A workaround would be to increase the insets for the tick labels to give them more room - the top and bottom values are the important ones in this case.

Regards,

Dave Gilbert

Locked