{"action":"created","issue":{"url":"https://api.github.com/repos/palantir/plottable/issues/1659","labels_url":"https://api.github.com/repos/palantir/plottable/issues/1659/labels{/name}","comments_url":"https://api.github.com/repos/palantir/plottable/issues/1659/comments","events_url":"https://api.github.com/repos/palantir/plottable/issues/1659/events","html_url":"https://github.com/palantir/plottable/pull/1659","id":58178272,"number":1659,"title":"[Plot] - getClosestPlotData()","user":{"login":"bluong","id":1448299,"avatar_url":"https://avatars.githubusercontent.com/u/1448299?v=3","gravatar_id":"","url":"https://api.github.com/users/bluong","html_url":"https://github.com/bluong","followers_url":"https://api.github.com/users/bluong/followers","following_url":"https://api.github.com/users/bluong/following{/other_user}","gists_url":"https://api.github.com/users/bluong/gists{/gist_id}","starred_url":"https://api.github.com/users/bluong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluong/subscriptions","organizations_url":"https://api.github.com/users/bluong/orgs","repos_url":"https://api.github.com/users/bluong/repos","events_url":"https://api.github.com/users/bluong/events{/privacy}","received_events_url":"https://api.github.com/users/bluong/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/palantir/plottable/labels/+1","name":"+1","color":"bfe5bf"},{"url":"https://api.github.com/repos/palantir/plottable/labels/p2","name":"p2","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"crmorford","id":7527733,"avatar_url":"https://avatars.githubusercontent.com/u/7527733?v=3","gravatar_id":"","url":"https://api.github.com/users/crmorford","html_url":"https://github.com/crmorford","followers_url":"https://api.github.com/users/crmorford/followers","following_url":"https://api.github.com/users/crmorford/following{/other_user}","gists_url":"https://api.github.com/users/crmorford/gists{/gist_id}","starred_url":"https://api.github.com/users/crmorford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crmorford/subscriptions","organizations_url":"https://api.github.com/users/crmorford/orgs","repos_url":"https://api.github.com/users/crmorford/repos","events_url":"https://api.github.com/users/crmorford/events{/privacy}","received_events_url":"https://api.github.com/users/crmorford/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-02-19T08:05:44Z","updated_at":"2015-02-20T20:46:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/palantir/plottable/pulls/1659","html_url":"https://github.com/palantir/plottable/pull/1659","diff_url":"https://github.com/palantir/plottable/pull/1659.diff","patch_url":"https://github.com/palantir/plottable/pull/1659.patch"},"body":"Adding the new API getClosestPlotData that is used to retrieve the PlotData object that is closest to the specified x/y arguments.\r\n\r\ngetClosestPlotData has the following signature\r\n```typescript\r\ngetClosestPlotData(xValue: number, yValue: number, withinValue: number = Infinity): PlotData\r\n```\r\n\r\nx/yValue are the specified coordinates to query.  withinValue is an optional argument (defaulting to Infinity) to specify the limit of the closest distance from the point.  If there is no PlotData closer than this value, then an empty PlotData is returned.\r\n\r\ngetClosestPlotData performs by querying all of the pixel points correlated with each datum value and does a minimum distance check across each pixel point until the minimum distance one is found.  Then the selection + datum is stored alongside with this pixel point information.\r\n\r\nFixes #1579 "},"comment":{"url":"https://api.github.com/repos/palantir/plottable/issues/comments/75316270","html_url":"https://github.com/palantir/plottable/pull/1659#issuecomment-75316270","issue_url":"https://api.github.com/repos/palantir/plottable/issues/1659","id":75316270,"user":{"login":"jtlan","id":1440449,"avatar_url":"https://avatars.githubusercontent.com/u/1440449?v=3","gravatar_id":"","url":"https://api.github.com/users/jtlan","html_url":"https://github.com/jtlan","followers_url":"https://api.github.com/users/jtlan/followers","following_url":"https://api.github.com/users/jtlan/following{/other_user}","gists_url":"https://api.github.com/users/jtlan/gists{/gist_id}","starred_url":"https://api.github.com/users/jtlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtlan/subscriptions","organizations_url":"https://api.github.com/users/jtlan/orgs","repos_url":"https://api.github.com/users/jtlan/repos","events_url":"https://api.github.com/users/jtlan/events{/privacy}","received_events_url":"https://api.github.com/users/jtlan/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T20:46:30Z","updated_at":"2015-02-20T20:46:30Z","body":"Would it make more sense to have a different variation of this method for different types of `Plot`s? For example, for bars, \"closest\" is defined differently."}}