Colouring individual points on Tlineseries

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Thomas Klingler
Advanced
Posts: 103
Joined: Tue Mar 02, 2004 5:00 am
Location: Bad Wurzach
Contact:

Colouring individual points on Tlineseries

Post by Thomas Klingler » Sun Jun 25, 2006 10:29 am

I have a Tchart (Pro 7.06) with a map style display which has hundreds of Tlineseries, each having 2000-3000 x,y points. At each point there is measured a third variable which I need to colour code by value, so if the variable is say 1.0 I would rdaw point x1,y1 as red, then if point x2,y2 is 2.5 I would colour it orange.

I'm using Tlineseries and addxy(x,y) to put the points at their position (I draw the points without connecting lines between them - Tlineseries.linepen.visible:=false).

Q.How do I control the colour of each point on a Tlineseries?

thanks
Sean

Thomas Klingler
Advanced
Posts: 103
Joined: Tue Mar 02, 2004 5:00 am
Location: Bad Wurzach
Contact:

Post by Thomas Klingler » Sun Jun 25, 2006 6:19 pm

think I've sussed it, set coloureachpoint:=true and in the ongetpointerstyle event set the .valuecolor[valueindex] for each point. Amazing how posting a request for help prompts the brain into coming up with an idea :)

Post Reply