{"action":"created","issue":{"url":"https://api.github.com/repos/palantir/plottable/issues/2550","labels_url":"https://api.github.com/repos/palantir/plottable/issues/2550/labels{/name}","comments_url":"https://api.github.com/repos/palantir/plottable/issues/2550/comments","events_url":"https://api.github.com/repos/palantir/plottable/issues/2550/events","html_url":"https://github.com/palantir/plottable/pull/2550","id":98879579,"number":2550,"title":"API endpoint to specify opacity of legend (take 2)","user":{"login":"yqlu","id":6540967,"avatar_url":"https://avatars.githubusercontent.com/u/6540967?v=3","gravatar_id":"","url":"https://api.github.com/users/yqlu","html_url":"https://github.com/yqlu","followers_url":"https://api.github.com/users/yqlu/followers","following_url":"https://api.github.com/users/yqlu/following{/other_user}","gists_url":"https://api.github.com/users/yqlu/gists{/gist_id}","starred_url":"https://api.github.com/users/yqlu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yqlu/subscriptions","organizations_url":"https://api.github.com/users/yqlu/orgs","repos_url":"https://api.github.com/users/yqlu/repos","events_url":"https://api.github.com/users/yqlu/events{/privacy}","received_events_url":"https://api.github.com/users/yqlu/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%20+1","name":"QE +1","color":"000000"}],"state":"open","locked":false,"assignee":{"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},"milestone":null,"comments":3,"created_at":"2015-08-04T03:20:25Z","updated_at":"2015-08-05T07:06:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/palantir/plottable/pulls/2550","html_url":"https://github.com/palantir/plottable/pull/2550","diff_url":"https://github.com/palantir/plottable/pull/2550.diff","patch_url":"https://github.com/palantir/plottable/pull/2550.patch"},"body":"Follow-up from PR #2461 and addresses issue #2434 \r\n\r\nCurrently there is no way to update the opacity of symbols in the legend in an API-endorsed way. This is desirable if you, for example, built a scatter plot of various datasets with varying colors and opacities, and would like the opacity in the legend to match.\r\n\r\nThis PR provides the following API endpoints on `Legend`:\r\n```typescript\r\n/**\r\n * Gets the opacity of the symbols of the Legend.\r\n *\r\n * @returns {(datum: any, index: number) => number}\r\n */\r\nsymbolOpacity(): (datum: any, index: number) => number;\r\n\r\n/**\r\n * Sets the opacity of the symbols of the Legend.\r\n *\r\n * @param {number | ((datum: any, index: number) => number)} symbolOpacity\r\n * @returns {Legend} The calling Legend\r\n */\r\nsymbolOpacity(symbolOpacity: number | ((datum: any, index: number) => number)): Legend;\r\n```\r\n\r\nSee http://plnkr.co/edit/nyEuE8L7rekfoftjeOSt?p=preview for demo."},"comment":{"url":"https://api.github.com/repos/palantir/plottable/issues/comments/127896325","html_url":"https://github.com/palantir/plottable/pull/2550#issuecomment-127896325","issue_url":"https://api.github.com/repos/palantir/plottable/issues/2550","id":127896325,"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},"created_at":"2015-08-05T07:06:18Z","updated_at":"2015-08-05T07:06:18Z","body":"Really neat example"}}