Page 1 of 1

Colouring individual points on Tlineseries

Posted: Sun Jun 25, 2006 10:29 am
by 8443014
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

Posted: Sun Jun 25, 2006 6:19 pm
by 8443014
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 :)