Issue with Legends display with 2 chart panels

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
vrsarav
Posts: 16
Joined: Mon Nov 09, 2009 4:34 pm
antibot: No, of course not.

Issue with Legends display with 2 chart panels

Post by vrsarav » Thu Dec 17, 2009 4:14 pm

I have two different chartPanel displayed using the split pane, one on the top and the other on the bottom. I have ensured the alignment of the both. Though not perfect it looks good.

I have the requirement of displaying the legend for just one of the chart. Hence the alignment is good as long as the legends are displayed on the top or bottom of the chart. But in my case i want the legend to be displayed on the left. This makes the alignment very difficult. One chart with the legends on the left and other without the legends.

I have come up with two ideas
1) i wanted to display the legends in a completely different panel other than the chart panel. so that it doesn't affect my alignment. Is this feasible?

2) Worst case, i have to display the legend for the other chart too. But those descriptions are like paragraph. Is there a way to display the abbreviated, just required amount of text in the legends?

Any suggestions are welcome.

Locked