how to display legend as wrap text

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
pintu.bppimt
Posts: 2
Joined: Tue Apr 19, 2011 8:05 am
antibot: No, of course not.

how to display legend as wrap text

Post by pintu.bppimt » Tue Apr 26, 2011 12:20 pm

Hi Friends,

I have to display the legend of a time series graph as wrap text in vertical alignment positioned in right of the graph. We are using the following code.

Code: Select all

LegendTitle legend  = jfreechart.getLegend();
        legend.setPosition(RectangleEdge.RIGHT);
        legend.setVerticalAlignment(VerticalAlignment.CENTER);
        


We want to wrap the legend text like "Non Battery Room" as
Non
Battery
Room.

Please reply if it is possible or not. It is urgent.

Thanks in advance,
Pintu

Locked