I am trying to set the back ground color of the charting area bounded by the horizontal and vertical axis in a 2D chart
In code I am setting
tchart1.Chart.Walls.Back.Color = System.Drawing.Color.Turquoise;
When running I go to the editor by clicking on the appropriate button of a commander tool. I go to the tabs Chart | Walls | Back and see that the Color property is set to Turquoise and the Visible checkbox is checked but the color does not change.
What prevents this color from displaying?
I find that the I can go to the Chart | Walls | Back | Gradiant button | Color Tab and select a color for the Top and see that it is applied as soon as I click on the OK button.
I am using TeeChart for .NET 2005 version 3.2.2722.29258, which I know is a little out of date. I will be upgrading in the next few weeks after we release our software
Setting background color of charting area
-
- Advanced
- Posts: 192
- Joined: Thu Feb 01, 2007 12:00 am
- Contact:
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Mike,
It's most likely that you need to set the gradient to not visible, for example:
It's most likely that you need to set the gradient to not visible, for example:
Code: Select all
tChart1.Walls.Back.Color = Color.Turquoise;
tChart1.Walls.Back.Gradient.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 |
Instructions - How to post in this forum |
-
- Advanced
- Posts: 192
- Joined: Thu Feb 01, 2007 12:00 am
- Contact:
That worked
Thanks, that worked. Was not obvious to me