Page 1 of 1

Panel Colour

Posted: Fri Aug 03, 2012 8:13 am
by 15662902
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?

Re: Panel Colour

Posted: Fri Aug 03, 2012 3:28 pm
by 10050769
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,