{"action":"created","issue":{"url":"https://api.github.com/repos/i-schuetz/SwiftCharts/issues/5","labels_url":"https://api.github.com/repos/i-schuetz/SwiftCharts/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/i-schuetz/SwiftCharts/issues/5/comments","events_url":"https://api.github.com/repos/i-schuetz/SwiftCharts/issues/5/events","html_url":"https://github.com/i-schuetz/SwiftCharts/issues/5","id":80689532,"number":5,"title":"Linking touch event on BubbleView to DetailView","user":{"login":"mac389","id":2212010,"avatar_url":"https://avatars.githubusercontent.com/u/2212010?v=3","gravatar_id":"","url":"https://api.github.com/users/mac389","html_url":"https://github.com/mac389","followers_url":"https://api.github.com/users/mac389/followers","following_url":"https://api.github.com/users/mac389/following{/other_user}","gists_url":"https://api.github.com/users/mac389/gists{/gist_id}","starred_url":"https://api.github.com/users/mac389/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mac389/subscriptions","organizations_url":"https://api.github.com/users/mac389/orgs","repos_url":"https://api.github.com/users/mac389/repos","events_url":"https://api.github.com/users/mac389/events{/privacy}","received_events_url":"https://api.github.com/users/mac389/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-25T22:28:03Z","updated_at":"2015-05-26T18:16:48Z","closed_at":null,"body":"It is great that the user can click on a point in the scatter plot and receive more information. \r\n\r\nHow would I enable the user to navigate to a detail page that contains further information about the point? \r\n\r\nI envision a storyboard that begins with a tab control. One tab takes the user to the scatter plot. The other tab takes the user through a master-detail sequence. This way the user can access the further detail about the points by scrolling through a tabulation of the points or by clicking them on the screen. \r\n\r\nI know that one would have to link DetailViewController with the viewGenerator for the scatter plot. I'm not sure where to put that linkage in the ViewController for the scatter plot. \r\n\r\nThanks\r\n"},"comment":{"url":"https://api.github.com/repos/i-schuetz/SwiftCharts/issues/comments/105623170","html_url":"https://github.com/i-schuetz/SwiftCharts/issues/5#issuecomment-105623170","issue_url":"https://api.github.com/repos/i-schuetz/SwiftCharts/issues/5","id":105623170,"user":{"login":"i-schuetz","id":1381744,"avatar_url":"https://avatars.githubusercontent.com/u/1381744?v=3","gravatar_id":"","url":"https://api.github.com/users/i-schuetz","html_url":"https://github.com/i-schuetz","followers_url":"https://api.github.com/users/i-schuetz/followers","following_url":"https://api.github.com/users/i-schuetz/following{/other_user}","gists_url":"https://api.github.com/users/i-schuetz/gists{/gist_id}","starred_url":"https://api.github.com/users/i-schuetz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i-schuetz/subscriptions","organizations_url":"https://api.github.com/users/i-schuetz/orgs","repos_url":"https://api.github.com/users/i-schuetz/repos","events_url":"https://api.github.com/users/i-schuetz/events{/privacy}","received_events_url":"https://api.github.com/users/i-schuetz/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T18:16:48Z","updated_at":"2015-05-26T18:16:48Z","body":"What you describe is 2x a master-detail structure (in one case the master is the chart and in the other, a tableview). In the case of the chart, if you work with storyboards, you have to set up master detail manually and trigger the segue programmatically, in the touch handler.\r\n\r\nYou should be able to find plenty of information about how to set up master detail for these cases in internet. There's nothing really chart specific here.\r\n\r\nWhat's maybe worth mentioning from chart side is that in the touch handler (as long as it's defined inside the view generator) you have all the necessary data for your detail controller. The chartPointModel has also an index variable with you can use to look up your original model object. You would have to store it in an instance variable in order to retrieve it in prepareForSegue to pass it to the detail controller.\r\n\r\n"}}