Coloring single spots in Points and Points3D series

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Lizabeth
Newbie
Newbie
Posts: 24
Joined: Thu Nov 13, 2003 5:00 am
Location: Sweden

Coloring single spots in Points and Points3D series

Post by Lizabeth » Thu Nov 04, 2004 7:52 am

Hello,

I have a problem with coloring spots in one series in different colors in version 1.1.1544.23908. In a previous version (1.0.1189.31308) this problem did not exist.

Unfortunately I can not use the last version of T-chart because we are to close to release and the only two versions we have tested are the ones above. I need to solve the problem with version 1.1.1544.23908 because we have worse problems with the other version.

The code that works fine in the older version above is:

string id;

for(int i = 0; i < theSeries.XValues.Count; i++)
{
id = theSeries.Label;

if(theSelectionList.InList(long.Parse(id)))
{
theSeries.Color = selectionColor;
}
else
{
theSeries.Color = defaultColor;
}
}

The spots get different colors from this code.
But in the newer version nothing at all happens with the spots.

Is there a way to color spots in a series with different colors in version 1.1.1544.23908?

Best regards
Lizabeth

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Thu Nov 04, 2004 10:06 am

Hi, Lisabeth.

Does it help if you set the ColorEach property to true ?

Code: Select all

theSeries.ColorEach = true;
theSeries.FillSampleValues(10);
theSeries.Colors[3] = Color.White; // change 4th point color to white
Marjan Slatinek,
http://www.steema.com

Lizabeth
Newbie
Newbie
Posts: 24
Joined: Thu Nov 13, 2003 5:00 am
Location: Sweden

Post by Lizabeth » Fri Nov 05, 2004 7:22 am

Hello,

It worked. Thank you!

Best regards
Lizabeth

Post Reply