Page 1 of 1

WebChart background color on ver 3

Posted: Mon Aug 06, 2007 10:04 am
by 9643998
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?

Posted: Mon Aug 06, 2007 11:24 am
by narcis
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;

Posted: Mon Aug 06, 2007 3:19 pm
by 9643998
Thank you