Page 1 of 1

Painting part of a series in a different color

Posted: Tue May 27, 2008 7:16 pm
by 13048060
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

Posted: Wed May 28, 2008 9:08 am
by narcis
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.