how to do multiple lines for axis labels?

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

how to do multiple lines for axis labels?

Post by Yu » Mon Jan 13, 2003 6:01 pm

Hi there,

Does anybody know how to create multiple-line axis labels?
I have a chart that needs to label the horizontal axis as something
like:
page views
(x1000,000)

Thanks in advance!

Yu

David Gilbert

Re: how to do multiple lines for axis labels?

Post by David Gilbert » Tue Jan 14, 2003 9:55 am

Hi Yu,

It would require a modification to the axis draw(...) method. If you do that, you should also update the reserveWidth(...) or reserveHeight(...) methods to reflect the fact that your axis needs a little extra room.

Regards,

Dave Gilbert

Locked