ios - Get Points in CorePlot as I drag -
i using core plot:
import uikit class viewcontroller: uiviewcontroller { @iboutlet weak var display: uilabel! @ibaction func pan(sender: uipangesturerecognizer) { var coordinate = sender.locationinview(uiview?()) display.text = "\(coordinate)" }}
this gets coordinates of point of screen pan around. possible in core plot graph? (using plotareatouchdown methods if possible)
get coordinate in hosting view (sender.locationinview(hostingview)
). convert plot area layer coordinate system using calayer
coordinate conversion methods , use plot space convert data coordinates.
Comments
Post a Comment