{"action":"created","issue":{"url":"https://api.github.com/repos/palantir/plottable/issues/2903","labels_url":"https://api.github.com/repos/palantir/plottable/issues/2903/labels{/name}","comments_url":"https://api.github.com/repos/palantir/plottable/issues/2903/comments","events_url":"https://api.github.com/repos/palantir/plottable/issues/2903/events","html_url":"https://github.com/palantir/plottable/pull/2903","id":112457409,"number":2903,"title":"Use a gradient for InterpolatedColorLegend instead of swatches","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},"labels":[{"url":"https://api.github.com/repos/palantir/plottable/labels/+1","name":"+1","color":"bfe5bf"},{"url":"https://api.github.com/repos/palantir/plottable/labels/QE","name":"QE","color":"ededed"}],"state":"open","locked":false,"assignee":{"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},"milestone":null,"comments":2,"created_at":"2015-10-20T20:50:01Z","updated_at":"2015-10-21T22:31:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/palantir/plottable/pulls/2903","html_url":"https://github.com/palantir/plottable/pull/2903","diff_url":"https://github.com/palantir/plottable/pull/2903.diff","patch_url":"https://github.com/palantir/plottable/pull/2903.patch"},"body":"...but it's actually just a large amount of very skinny swatches.\r\n\r\nbefore: http://jsfiddle.net/j5b9f60c/57/\r\n\r\n![screen shot 2015-10-20 at 1 48 30 pm](https://cloud.githubusercontent.com/assets/7527733/10620701/63736b6a-7731-11e5-99eb-d3ed69bb8873.png)\r\n\r\nafter http://jsfiddle.net/j5b9f60c/58/\r\n![screen shot 2015-10-20 at 1 48 17 pm](https://cloud.githubusercontent.com/assets/7527733/10620685/4da26ac0-7731-11e5-9472-02ae6fdbab13.png)"},"comment":{"url":"https://api.github.com/repos/palantir/plottable/issues/comments/150042779","html_url":"https://github.com/palantir/plottable/pull/2903#issuecomment-150042779","issue_url":"https://api.github.com/repos/palantir/plottable/issues/2903","id":150042779,"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-10-21T22:31:07Z","updated_at":"2015-10-21T22:31:07Z","body":"Looks good, but two things I want to note:\r\n* Render time is slower with the gradient, as expected. For a 1000px wide `InterpolatedColorLegend`, render time goes from 25~30ms to 60~80ms in Chrome: http://jsfiddle.net/L7ea4wrz/\r\n* Applying stroke style to the swatches now produces odd results, since the swatches are 1px wide. I think this is a fair exchange though.\r\n<img width=\"412\" alt=\"screen shot 2015-10-21 at 3 30 10 pm\" src=\"https://cloud.githubusercontent.com/assets/1440449/10652118/aeb0caf0-7808-11e5-8403-c3a7b681e8e3.png\">\r\n\r\n  http://jsfiddle.net/mLhhpxnh/\r\n\r\n"}}