Setting TEEChart WPF Background

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Mike B
Newbie
Newbie
Posts: 7
Joined: Wed Sep 07, 2005 4:00 am

Setting TEEChart WPF Background

Post by Mike B » Tue May 20, 2008 4:00 pm

How do you set the chart background color in TeeChart WPF (I'm currently using the beta).

I thought that the following would work, but the entire rectangle is black, as if there was an overlay covering the entire chart area.

Code: Select all

Steema.TeeChart.WPF.TChart chart = new Steema.TeeChart.WPF.TChart();
chart.Background = Brushes.Black;
Thanks, Mike

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed May 21, 2008 8:01 am

Hi Mike,

In that case you need to do this:

Code: Select all

			tChart1.Panel.Color = Colors.Black;
			tChart1.Panel.Gradient.Visible = false;
			tChart1.Walls.Back.Visible = false;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply