FlexChart: Getting x Axis data from LineMarker location

Posted by: reece.gallaway on 24 May 2019, 8:02 am EST

  • Posted 24 May 2019, 8:02 am EST

    Hi,

    We have been using the line marker to draw an intersect on a line graph that will return the all the series data where they match the x value of where the line is drawn.

    We have used HitTestInfo to query this information but have found that this selects the closest DataPoint rather than using the X value of wherever the line marker is drawn.

    We’ve also tried to use the x,y coordindates to get this info, but we can only see a way of getting the x Value via the HitTest, which again uses closest DataPoint rather than current location.

    Could you tell us if its possible to just return the x Value of wherever the LineMarker is? If you could also provide an example that would be super helpful.

    Thanks,

    Reece

  • Posted 27 May 2019, 5:42 am EST

    Hello,

    To get the X and Y value of wherever Line Marker is, you may use the x and y properties of LineMarker class. Please refer to the sample provided.

    API reference:

    x-value:

    https://www.grapecity.com/wijmo/api/classes/wijmo_chart.linemarker.html#x

    y-value:

    https://www.grapecity.com/wijmo/api/classes/wijmo_chart.linemarker.html#y

  • Posted 27 May 2019, 5:42 am EST

Need extra support?

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

Learn More

Forum Channels