Set background in code has no effect?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Brian Begy
Newbie
Newbie
Posts: 16
Joined: Fri Apr 16, 2004 4:00 am
Location: Chicago
Contact:

Set background in code has no effect?

Post by Brian Begy » Thu Jun 03, 2004 2:24 am

I have an asp.net page that needs to have graphs added dynamically.

Most of the chart functions behave normally, but I can't change the background color or the border style of my charts.

quickChart.BorderStyle = BorderStyle.None
quickChart.BackColor = Color.Transparent
quickChart.BorderColor = Color.Transparent
quickChart.Chart.Walls.Back.Color = Color.Transparent

Any suggestions?

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Jun 03, 2004 8:13 am

Hi Brian,

to change the Border Style you should use similar code the following :
WebChart1.Chart.Panel.Bevel.Inner = Steema.TeeChart.Drawing.BevelStyles.None
WebChart1.Chart.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None

About the Transparent BackGround, it should work using :
WebChart.Chart.BackColor = Color.Transparent
or
WebChart.Chart.Panel.Color = Color.Transparent
but there's a problem (bug) and does not do what should. It's already on our defect list and a fix for it will be considered to inclusion for the next maintenance releases.

Post Reply