cannot put legend in another panel when disabled in chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
lengrexin
Posts: 8
Joined: Mon Dec 31, 2007 8:13 pm

cannot put legend in another panel when disabled in chart

Post by lengrexin » Tue Nov 10, 2009 9:32 pm

Hi,
I saw other posts regarding the legend of a chart in a different panel/frame but couldn't find the solution for my problem. I am able to display the legend of the chart in a different panel, but I cannot disable the legend in the chart.

When I disable the legend during the creation of the chart (ex:
JFreeChart mychart = ChartFactory.createBarChart3D(
"title", "x", "y",
(CategoryDataset) dataset, PlotOrientation.VERTICAL,
false, true, false);)
I could no longer grab the legend from the chart to be displayed in a separate panel; the separate panel doesn't show anything

Is there a way to disable the legend in the chart and yet still be able to grab the legend and put it in a different panel?

Thanks.

Locked