hi all. can anyone give me a quick tip on how to remove the box (just the box - the shapes+labels/text remain as they are) for the legend? 'Can't seem to find the appropriate
method for this (only saw setAnchor in the Javadoc for the location of the where the legend will go).
thx and g'day,
how to remove legend box?
You could try using the following code to blend the legend in with the chart:
Code: Select all
((StandardLegend)chart.getLegend()).setOutlinePaint(null);
((StandardLegend)chart.getLegend()).setBackgroundPaint(chart.getBackgroundPaint());