0

I already implemented ScrollableGraphView in my app, but I am not getting how to add label with value on click of "Dot" and/or "Bar". Please refer image.

Line Graph with label

and

Bar graph with label

Till now I able to achieve everything without label. This is best library. But now I am not getting how to detect touch/click of Dot and/or Bar.

halfer
  • 19,824
  • 17
  • 99
  • 186
iSmita
  • 1,292
  • 1
  • 9
  • 24

1 Answers1

0

You can identify point of Tap via CGPoint : that will give X and Y Coordinates.

Location Reference: How to get a CGPoint from a tapped location?

For the label you want to show on tap, you have to create a custom view using XIB and Invoke it in Tap gesture Action/Selector.

Community
  • 1
  • 1
Abhishek Thapliyal
  • 3,497
  • 6
  • 30
  • 69