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

Popular posts from this blog

java - Incorrect order of records in M-M relationship in hibernate -

ruby - Net::HTTP extremely slow responses for HTTPS requests -

c++ - Boost Spirit Parser with a vector of three strings compiling into a struct, adapt not working -