{"action":"created","issue":{"url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/246","labels_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/246/comments","events_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/246/events","html_url":"https://github.com/PhilJay/MPAndroidChart/issues/246","id":50347882,"number":246,"title":"About MarkerView","user":{"login":"xf222zt","id":9381440,"avatar_url":"https://avatars.githubusercontent.com/u/9381440?v=3","gravatar_id":"","url":"https://api.github.com/users/xf222zt","html_url":"https://github.com/xf222zt","followers_url":"https://api.github.com/users/xf222zt/followers","following_url":"https://api.github.com/users/xf222zt/following{/other_user}","gists_url":"https://api.github.com/users/xf222zt/gists{/gist_id}","starred_url":"https://api.github.com/users/xf222zt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xf222zt/subscriptions","organizations_url":"https://api.github.com/users/xf222zt/orgs","repos_url":"https://api.github.com/users/xf222zt/repos","events_url":"https://api.github.com/users/xf222zt/events{/privacy}","received_events_url":"https://api.github.com/users/xf222zt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-11-28T07:27:53Z","updated_at":"2015-01-13T18:59:03Z","closed_at":null,"body":"Hi Phil\r\n        I had overwirte the MarkerView to make it fit my app。But when the content in the view be little more，its posionton on chart will be moved some pixels from the exact place。\r\n     How can i deal with it？\r\n"},"comment":{"url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/comments/69798522","html_url":"https://github.com/PhilJay/MPAndroidChart/issues/246#issuecomment-69798522","issue_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/246","id":69798522,"user":{"login":"PhilJay","id":6759734,"avatar_url":"https://avatars.githubusercontent.com/u/6759734?v=3","gravatar_id":"","url":"https://api.github.com/users/PhilJay","html_url":"https://github.com/PhilJay","followers_url":"https://api.github.com/users/PhilJay/followers","following_url":"https://api.github.com/users/PhilJay/following{/other_user}","gists_url":"https://api.github.com/users/PhilJay/gists{/gist_id}","starred_url":"https://api.github.com/users/PhilJay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhilJay/subscriptions","organizations_url":"https://api.github.com/users/PhilJay/orgs","repos_url":"https://api.github.com/users/PhilJay/repos","events_url":"https://api.github.com/users/PhilJay/events{/privacy}","received_events_url":"https://api.github.com/users/PhilJay/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T18:59:03Z","updated_at":"2015-01-13T18:59:03Z","body":"As of the latest commit, any **issues concerning the position** of the `MarkerView` should be fixed.\r\n\r\nThe `MarkerView` now provides **2 abstract methods from which the desired offsets have to be returned**: [AbstractMarkerView class](https://github.com/PhilJay/MPAndroidChart/blob/master/MPChartLib/src/com/github/mikephil/charting/utils/MarkerView.java)\r\n\r\nThe implementation looks like the following: [Custom MarkerView implementation](https://github.com/PhilJay/MPAndroidChart/blob/master/MPChartExample/src/com/xxmassdeveloper/mpchartexample/MyMarkerView.java)\r\n\r\nBy returning `-(getWidth() / 2);` from the `getXOffset()` method, the `MarkerView` will be centered horizontally.\r\n\r\nBy returning `-getHeight()` from the `getYOffset()` method, the `MarkerView` position will be above the selected value."}}