Background color change

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
SDG
Newbie
Newbie
Posts: 3
Joined: Fri Nov 15, 2002 12:00 am

Background color change

Post by SDG » Wed Mar 17, 2010 5:43 am

Hi,
Although it sounds simple, but I am not able to change the background color of the charts. This is the area that lies between the axes. Kindly let me the method to do so.
Thanks,
Mausam

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Background color change

Post by Yeray » Wed Mar 17, 2010 10:32 am

Hi Mausam,

As told to you through the prosupport a few days ago:

You are probably missing to deactivate the back wall gradient. The following code seems to work fine here:

Code: Select all

       tChart1.getWalls().getBack().setColor(java.awt.Color.yellow);
       tChart1.getWalls().getBack().getGradient().setVisible(false);
If you still have problems with it, please don't hesitate to let us know.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

SDG
Newbie
Newbie
Posts: 3
Joined: Fri Nov 15, 2002 12:00 am

Re: Background color change

Post by SDG » Wed Mar 17, 2010 12:23 pm

Thanks Yeray,

This is working. :)

Post Reply