#984 ChartPanel can't be transparent (non-opaque) anymore.

1.0.x
open
nobody
General (896)
5
2012-11-27
2010-02-10
Gnoupi
No

I was using JFreeChart 1.0.9 for a while, and recently tried to upgrade to the latest stable one (1.0.13).

I was using ChartPanel over another panel (from another framework, and with a gradient). To have consistency of display, I was setting the chart to a "non-opaque" setting:

iChartPanel.setOpaque(false);
iChart.setBackgroundPaint(null);
iChart.getPlot().setBackgroundPaint(null);

It was working good in the 1.0.9, but it doesn't work anymore in the 1.0.13 (I don't know when exactly this changed, though. If needed, I could eventually check all versions between). The chart is now opaque, even with these settings, and has the default background color from JPanels.

Did something change in the way this is handled, and should it be made on another way? Or is it simply a small regression?

Discussion