Painting part of a series in a different color

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
sfwmd
Newbie
Newbie
Posts: 14
Joined: Wed Jan 23, 2008 12:00 am

Painting part of a series in a different color

Post by sfwmd » Tue May 27, 2008 7:16 pm

Narcis,
I have requirement where I have a Time vs Value plot drwan as a Line Series.

In my source data, I have Time column, Value column and a third colum which indicates the data quality for the Value.
I need help for:

1. Depending on the Dataquality of the value, I need the line color to be in specific color (cyan) different from the rest of the line.

2. While I am plotting multiple series in the chart, I would like to prevent Teechart from using Cyan by default for any other line series.

Could you please let me know how we can best acheive these features.

Thanks
Kalyan
--
Regards
Kalyan

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 28, 2008 9:08 am

Hi Kalyan,

1. In that case you can set Line's ColorEachLine property to true as described on this thread.

2. You can specify the color for each series, for example:

Code: Select all

tChart1[0].Color=Color.Red;
So that you don't have any series that repeat a color.
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