WebChart background color on ver 3

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
MeirS
Newbie
Newbie
Posts: 14
Joined: Thu Jan 25, 2007 12:00 am

WebChart background color on ver 3

Post by MeirS » Mon Aug 06, 2007 10:04 am

Hi,
Since we upgraded to .net ver 3 there is a problem in display of the background color of a webchart line graph.
The color we set for the graph applies only to the outer part of the chart display,
and all the inner part where the series are drawn, stays gray, no matter what we do.
Here is the code

Code: Select all

Color startColor = Color.FromArgb(254, 234, 234, 255);
tChart.Panel.Gradient.Visible = true;
tChart.Panel.Gradient.StartColor = Color.White;   
tChart.Panel.Gradient.EndColor = StartColor;
tChart.Panel.Color = StartColor;
tChart.Panel.Brush.Color = StartColor;
What to do to get the whole background colored evenly with the background color we want?

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

Post by Narcís » Mon Aug 06, 2007 11:24 am

Hi MeirS,

Ok, instead of changing the gradient of the panel you have to change the gradient of the back wall, for example:

Code: Select all

tChart.Walls.Back.Gradient.Visible = 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

MeirS
Newbie
Newbie
Posts: 14
Joined: Thu Jan 25, 2007 12:00 am

Post by MeirS » Mon Aug 06, 2007 3:19 pm

Thank you

Post Reply