How do you set the color of chart "drawing" area???

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
jzarech
Newbie
Newbie
Posts: 58
Joined: Mon Jul 07, 2008 12:00 am

How do you set the color of chart "drawing" area???

Post by jzarech » Wed Dec 05, 2018 7:00 am

I've looked through every setting in the properties dialog for TChart and can't set the "drawing area" color for the chart for the life of me (see attachment)
clientarea.jpg
clientarea.jpg (82.78 KiB) Viewed 12219 times
. any help would be greatly appreciated.Thanks very much.

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: How do you set the color of chart "drawing" area???

Post by Christopher » Wed Dec 05, 2018 7:53 am

Hello,

the following code:

Code: Select all

		private void InitializeChart()
		{
			tChart1.Panel.Color = Color.Red;

			tChart1.Walls.Back.Visible = true;
			tChart1.Walls.Back.Transparent = false;
			tChart1.Walls.Back.Gradient.Visible = false;
			tChart1.Walls.Back.Color = Color.Yellow;
		}
will give you this chart:
TeeChartPro_2018-12-05_08-50-32.png
TeeChartPro_2018-12-05_08-50-32.png (5.84 KiB) Viewed 12217 times
I hope that answers your question!
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

jzarech
Newbie
Newbie
Posts: 58
Joined: Mon Jul 07, 2008 12:00 am

Re: How do you set the color of chart "drawing" area???

Post by jzarech » Wed Dec 05, 2018 8:36 am

I spent hours on this! Thanks very much!!!

Post Reply