plot background change 8 to 13

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
petersk
Posts: 8
Joined: Tue Mar 28, 2006 1:03 pm

plot background change 8 to 13

Post by petersk » Mon Nov 29, 2010 6:42 pm

I updated some of my software and included the newest JFreeChart library (from 8 to 13). Now the plots have that hideous excel-like gray background!

I suppose I need to do this to make it go back to the right way:
plotX.setBackgroundPaint(Color.white);
plotX.setRangeGridlinePaint(Color.black);
plotX.setDomainGridlinePaint(Color.black);

for each place my plots that are plotted, but I cannot believe such a LARGE change was made, seemingly, for no apparent technical reason.
Kurt
Kurt

skunk
Posts: 1087
Joined: Thu Jun 02, 2005 10:14 pm
Location: Brisbane, Australia

Re: plot background change 8 to 13

Post by skunk » Mon Nov 29, 2010 7:14 pm

Code: Select all

ChartFactory.setChartTheme(ChartTheme.createLegacyTheme());
should restore the old defaults.
Also search the list. There are a few isolated cases (like shadows on bar charts) that require further code changes.

petersk
Posts: 8
Joined: Tue Mar 28, 2006 1:03 pm

Re: plot background change 8 to 13

Post by petersk » Mon Nov 29, 2010 7:39 pm

The Documentation I purchased is pretty old (Pre -version 8 ), so I'll have to check if themes are mentioned.
Thanks,
Kurt
Kurt

skunk
Posts: 1087
Joined: Thu Jun 02, 2005 10:14 pm
Location: Brisbane, Australia

Re: plot background change 8 to 13

Post by skunk » Mon Nov 29, 2010 7:40 pm

Themes were introduced in 1.0.11

Locked