TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
-
Mike B
- Newbie
- Posts: 7
- Joined: Wed Sep 07, 2005 4:00 am
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
- 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;