Panel Colour

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
mikethelad
Newbie
Newbie
Posts: 58
Joined: Thu Jul 05, 2012 12:00 am

Panel Colour

Post by mikethelad » Fri Aug 03, 2012 8:13 am

I have set the panel colour to be white as below:-

WebChart1.Chart.Panel.Color = System.Drawing.Color.White;
WebChart1.Chart.Panel.Visible = true;

However this is giving a gradient colour, see sample 1

If I make the panel invisible = false, the fonts then look wrong, how can get remove the gradiant?
Attachments
Graph Panel Colour 2.JPG
with Panel Visible = false
Graph Panel Colour 2.JPG (38.29 KiB) Viewed 2898 times
Graph Panel Colour.JPG
With Panel Visible
Graph Panel Colour.JPG (39.83 KiB) Viewed 2896 times

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

Re: Panel Colour

Post by Sandra » Fri Aug 03, 2012 3:28 pm

Hello mikethelad,
I have set the panel colour to be white as below:-

WebChart1.Chart.Panel.Color = System.Drawing.Color.White;
WebChart1.Chart.Panel.Visible = true;

However this is giving a gradient colour, see sample 1

If I make the panel invisible = false, the fonts then look wrong, how can get remove the gradiant?
I recommend do something as next code:

Code: Select all

tChart1 = WebChart3.Chart;
        tChart1.Panel.Gradient.Visible = false;
        tChart1.Panel.Color = Color.White;
        tChart1.Walls.Back.Gradient.Visible = false;
        tChart1.Walls.Back.Color = 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

Post Reply