{"action":"created","issue":{"url":"https://api.github.com/repos/palantir/plottable/issues/2837","labels_url":"https://api.github.com/repos/palantir/plottable/issues/2837/labels{/name}","comments_url":"https://api.github.com/repos/palantir/plottable/issues/2837/comments","events_url":"https://api.github.com/repos/palantir/plottable/issues/2837/events","html_url":"https://github.com/palantir/plottable/pull/2837","id":109563309,"number":2837,"title":"Add downsampling performance option","user":{"login":"yunhaolucky","id":3696519,"avatar_url":"https://avatars.githubusercontent.com/u/3696519?v=3","gravatar_id":"","url":"https://api.github.com/users/yunhaolucky","html_url":"https://github.com/yunhaolucky","followers_url":"https://api.github.com/users/yunhaolucky/followers","following_url":"https://api.github.com/users/yunhaolucky/following{/other_user}","gists_url":"https://api.github.com/users/yunhaolucky/gists{/gist_id}","starred_url":"https://api.github.com/users/yunhaolucky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yunhaolucky/subscriptions","organizations_url":"https://api.github.com/users/yunhaolucky/orgs","repos_url":"https://api.github.com/users/yunhaolucky/repos","events_url":"https://api.github.com/users/yunhaolucky/events{/privacy}","received_events_url":"https://api.github.com/users/yunhaolucky/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/In%20CR","name":"In CR","color":"0052cc"}],"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":{"url":"https://api.github.com/repos/palantir/plottable/milestones/55","html_url":"https://github.com/palantir/plottable/milestones/v1.15.0","labels_url":"https://api.github.com/repos/palantir/plottable/milestones/55/labels","id":1309195,"number":55,"title":"v1.15.0","description":"","creator":{"login":"christinaforney","id":1559622,"avatar_url":"https://avatars.githubusercontent.com/u/1559622?v=3","gravatar_id":"","url":"https://api.github.com/users/christinaforney","html_url":"https://github.com/christinaforney","followers_url":"https://api.github.com/users/christinaforney/followers","following_url":"https://api.github.com/users/christinaforney/following{/other_user}","gists_url":"https://api.github.com/users/christinaforney/gists{/gist_id}","starred_url":"https://api.github.com/users/christinaforney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christinaforney/subscriptions","organizations_url":"https://api.github.com/users/christinaforney/orgs","repos_url":"https://api.github.com/users/christinaforney/repos","events_url":"https://api.github.com/users/christinaforney/events{/privacy}","received_events_url":"https://api.github.com/users/christinaforney/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":9,"state":"open","created_at":"2015-09-16T20:11:20Z","updated_at":"2015-10-08T19:43:32Z","due_on":"2015-10-09T07:00:00Z","closed_at":null},"comments":5,"created_at":"2015-10-02T20:09:49Z","updated_at":"2015-10-08T19:44:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/palantir/plottable/pulls/2837","html_url":"https://github.com/palantir/plottable/pull/2837","diff_url":"https://github.com/palantir/plottable/pull/2837.diff","patch_url":"https://github.com/palantir/plottable/pull/2837.patch"},"body":"New Performance option for `Plots.Line`.\r\n\r\nWhen downsampling is enabled in a Line Plot, the number of lines will decrease significantly if there are lots of lines whose ends have the same x/y values and overlap with each other. This change will also affect Area Plot and Stacked Area Plot.\r\n\r\nAPI change:\r\n```typescript\r\n/**\r\n* Gets the downsampling performance option state\r\n*\r\n* When downsampling is enabled, lines whose two ends have the same scaled x/y values will not be drawn on top of each other.\r\n*/\r\ndownsamplingEnabled(): boolean;\r\n/**\r\n* Sets if the downsampling performance option is enabled\r\n*\r\n* @returns {Plots.Line} The calling Plots.Line\r\n*/\r\ndownsamplingEnabled(downsample: boolean): Plots.Line<X>;\r\n```\r\n\r\nDemo:\r\nBefore: http://jsfiddle.net/yunhaolucky/yxpq4uuv/11/\r\nAfter: http://jsfiddle.net/yunhaolucky/yxpq4uuv/15/\r\n\r\nPart of #2523\r\n"},"comment":{"url":"https://api.github.com/repos/palantir/plottable/issues/comments/146666683","html_url":"https://github.com/palantir/plottable/pull/2837#issuecomment-146666683","issue_url":"https://api.github.com/repos/palantir/plottable/issues/2837","id":146666683,"user":{"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},"created_at":"2015-10-08T19:44:48Z","updated_at":"2015-10-08T19:44:48Z","body":"This case looks a lot more different than I'd like :/\r\nhttp://jsfiddle.net/yxpq4uuv/19/"}}