How to word wrap y-axis label?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
gregpass
Posts: 3
Joined: Tue Apr 18, 2006 5:47 pm

How to word wrap y-axis label?

Post by gregpass » Tue Apr 18, 2006 5:59 pm

Is there a way to force word wrapping for y-axis labels?

I have a long y-axis label that is taller than the plot itself; the beginning and ending of the label are currently falling outside of the chart.

I have tried using RectangleInsets and embedded '\n's, but no luck.

gregpass
Posts: 3
Joined: Tue Apr 18, 2006 5:47 pm

Also a problem in combined charts.

Post by gregpass » Wed Apr 19, 2006 12:44 pm

I'm also encountering this problem in combined charts.

For example, I have a domain-based combined chart with several squat ranges stacked on top of each other. The y-axis labels of each range, because they do not wrap, overlap each other.

Thanks.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Wed Apr 19, 2006 12:51 pm

Unfortunately there is no way around this at present.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked