Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
275
IGDataPoint's location in the chart.
posted

Is there a way to get the location of an IGDataPoint (IGCategoryPoint in my case) in the chart? I need to do so after a tap on a series line, but `chartView:tapForSeries:withItem:atPoint:` isn't really what I want. There seems to be no property on the IGDataPoint to extract its location nor a method on the chart or series to extract the location out of a data point...

Parents
No Data
Reply
  • 23930
    Offline posted

    Hi Rogelio,

    Thank you for the reply.

    What you could do in order to get the screen coordinates of a given point is to use the converToScreen method of its axes. If the axis is category axis, you should use the index of the point as parameter and if it is numeric you should use the value of the data point. This way if the series is a column series you will get the top center of the column, if it is a line - the center of the marker.

    Let me know if you have any additional questions.

Children