Page 1 of 1
Chart Background Color
Posted: Mon Nov 15, 2010 11:00 pm
by 15657707
I need for the background color of the actual chart area to be white. Setting tchart1.BackColor = Color.White sets the background color of the panel to white but the background of the chart interior remains an off-white. How can I get the interior of the chart to be white?
Re: Chart Background Color
Posted: Tue Nov 16, 2010 1:03 pm
by 10050769
Hello tcorrigan5,
I think you need disable Gradient of tChart panel.Please add next lines in your code, and check again if in your project all background change of color.
Code: Select all
tChart1.Panel.Gradient.Visible = false;
tChart1.BackColor = Color.White;
I hope will helps.
Thanks,
Re: Chart Background Color
Posted: Tue Nov 16, 2010 3:55 pm
by 15657707
No, that doesn't work. Attached is a sample of the current output.
Re: Chart Background Color
Posted: Tue Nov 16, 2010 4:07 pm
by narcis
Hi tcorrigan5,
You need to do the same with Walls.Back as you did with Panel:
Code: Select all
tChart1.Walls.Back.Color = Color.White;
tChart1.Walls.Back.Gradient.Visible = false;
Or alternatively set back wall to be transparent:
Code: Select all
tChart1.Panel.Color = Color.White;
tChart1.Panel.Gradient.Visible = false;
tChart1.Walls.Back.Transparent = true;
Re: Chart Background Color
Posted: Tue Nov 16, 2010 5:08 pm
by 15657707
Yes, that works. Thank you.