Page 1 of 1

OnGetMarkText issue

Posted: Mon May 14, 2018 8:16 am
by 16581145
Hello,

I need to display the mark that is associated with the point that the mouse pointer is closest to, some time ago I was instructed to use the OnGetMarkText event and this was working ok but I realised that now with version 2017.23.171221 it does not behave correctly. Attached is a sample application, the Label1 caption get the series label value but it looks like the ValueIndex in the OnGetMarkText is fired with a step, I mean for index 1, 9, 18 etc. Am I doing something wrong here?

Regards

Re: OnGetMarkText issue

Posted: Wed May 16, 2018 11:04 am
by yeray
Hello,

Try setting this:

Code: Select all

    Chart2.Series[0].Marks.Automatic.Move:=false;
    Chart2.Series[0].CalcVisiblePoints:=False;

Re: OnGetMarkText issue

Posted: Thu May 17, 2018 1:15 pm
by 16581145
Works like a charm, thank you!!! :)