Multiple chart panel background colors?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Patrick
Newbie
Newbie
Posts: 5
Joined: Wed Feb 04, 2004 5:00 am
Contact:

Multiple chart panel background colors?

Post by Patrick » Sat Nov 20, 2004 4:28 pm

I would like to color in the background of my chart with multiple background colors. Basically, I want a light green/yellow/red as the panel background, depending on the value of a line series.

Is this possible?

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

Post by Pep » Mon Nov 22, 2004 8:14 am

Hi Patrick,

yes, you can set a Gradient color for the Panel.

Code: Select all

tChart1.Panel.Gradient.StartColor = Color.Blue;
tChart1.Panel.Gradient.MiddleColor = Color.Green;
tChart1.Panel.Gradient.EndColor= Color.Red;
tChart1.Panel.Gradient.Visible = true;

Patrick
Newbie
Newbie
Posts: 5
Joined: Wed Feb 04, 2004 5:00 am
Contact:

Post by Patrick » Mon Nov 22, 2004 11:07 am

Pep wrote:Hi Patrick,

yes, you can set a Gradient color for the Panel.
That won't work. I need something that varies based on the value of a line series. In other words, it could be red/green/yellow/red/yellow/red/green etc. After looking over the documentation, I have come to the conclusion that this is not possible, and I will have to take another approach.

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

Post by Pep » Mon Nov 22, 2004 11:40 am

Hi Patrick,

maybe you can use the GridBand tool ? or ColorBand Tool ?

Post Reply