WebChart background color on ver 3
Posted: 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
What to do to get the whole background colored evenly with the background color we want?
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;