FlexChart HitTest Distance

Posted by: metrik on 14 May 2020, 1:20 am EST

  • Posted 14 May 2020, 1:20 am EST


    as I have found out marker box only shows information about a point which is closest to the mouse cursor position. This makes sense but not always.
    Sometimes users only want marker to show information as per vertical position of cursor. For better understanding please see the attached screenshot:

    In here definitely points to the left from cursor position have the least distance (and their values are used for marker content). But from users point of view it would give much more sense to show values which are crossing vertical marker.

    Seems like FlexChart when making HitTest only cares about total distance (both X and Y coordinates). I would like it to care only about vertical distance. Is this possible to achieve?
    Hope you understand what I mean.
  • Replied 14 May 2020, 9:16 pm EST


    We have asked the dev team on this with internal tracking id 435435. We will update you once we will hear from them.

  • Replied 18 May 2020, 10:19 pm EST

    Hi Ashwin,

    thanks, have you got any update from the dev team on this please?
  • Replied 19 May 2020, 6:14 pm EST


    The developers are still investigating the issue. I have asked them to take this on priority and I will update you as soon as I have any further information.

  • Replied 27 July 2020, 7:23 pm EST

    Hi Metrik,

    The developers have said that you can set the seriesIndex property of the LineMarker to 0 and it will automatically display the closest x point. Please refer to the updated sample below:


Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels