Page 1 of 1

TeeChart v7 Point Color does not change until double click

Posted: Tue Mar 24, 2009 6:03 pm
by 9524501
I am using TeeChart v7 and have been working on this issue all morning. I am checking my data points on the chart against a set of control limits. When the data point is outside of the limits I want to change the point color to RED.

I have drop down box that allows the user to select different variables and the data is displayed for that variable. The chart is displayed initially for the first variable in the list and the data points that are out of limits show in RED.

But when a different variable is selected the data points are not shown in RED for the ones that are out of limits. But when I double click the chart, the points are shown in RED.

What am I missing? I have ColorEachPoint set to True.

Vince

Posted: Wed Mar 25, 2009 8:40 am
by yeray
Hi Vince,

As you probably are doing, you should use OnGetSeriesPointerStyle event to check your conditions and set the according color to your points.

What you may be forgetting is to force entering to this event when one of this conditions has changed. So, could you verify that you are repainting the chart after changing a condition?

Code: Select all

TChart1.Environment.InternalRepaint

Posted: Wed Mar 25, 2009 3:02 pm
by 9524501
Yes that did it. I knew that there had to be something that I was missing, I just wasn't sure what it was.

Thank you!