Chart Background Color

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
tcorrigan5
Newbie
Newbie
Posts: 11
Joined: Tue Nov 02, 2010 12:00 am

Chart Background Color

Post by tcorrigan5 » Mon Nov 15, 2010 11:00 pm

I need for the background color of the actual chart area to be white. Setting tchart1.BackColor = Color.White sets the background color of the panel to white but the background of the chart interior remains an off-white. How can I get the interior of the chart to be white?

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Chart Background Color

Post by Sandra » Tue Nov 16, 2010 1:03 pm

Hello tcorrigan5,

I think you need disable Gradient of tChart panel.Please add next lines in your code, and check again if in your project all background change of color.

Code: Select all

        tChart1.Panel.Gradient.Visible = false;
            tChart1.BackColor = Color.White;
I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

tcorrigan5
Newbie
Newbie
Posts: 11
Joined: Tue Nov 02, 2010 12:00 am

Re: Chart Background Color

Post by tcorrigan5 » Tue Nov 16, 2010 3:55 pm

No, that doesn't work. Attached is a sample of the current output.
Attachments
example.jpg
example.jpg (374 KiB) Viewed 5066 times

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Chart Background Color

Post by Narcís » Tue Nov 16, 2010 4:07 pm

Hi tcorrigan5,

You need to do the same with Walls.Back as you did with Panel:

Code: Select all

            tChart1.Walls.Back.Color = Color.White;
            tChart1.Walls.Back.Gradient.Visible = false;
Or alternatively set back wall to be transparent:

Code: Select all

            tChart1.Panel.Color = Color.White;
            tChart1.Panel.Gradient.Visible = false;

            tChart1.Walls.Back.Transparent = true;           
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

tcorrigan5
Newbie
Newbie
Posts: 11
Joined: Tue Nov 02, 2010 12:00 am

Re: Chart Background Color

Post by tcorrigan5 » Tue Nov 16, 2010 5:08 pm

Yes, that works. Thank you.

Post Reply