{"action":"opened","issue":{"url":"https://api.github.com/repos/Packet-Clearing-House/maptable/issues/76","repository_url":"https://api.github.com/repos/Packet-Clearing-House/maptable","labels_url":"https://api.github.com/repos/Packet-Clearing-House/maptable/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/Packet-Clearing-House/maptable/issues/76/comments","events_url":"https://api.github.com/repos/Packet-Clearing-House/maptable/issues/76/events","html_url":"https://github.com/Packet-Clearing-House/maptable/issues/76","id":338752546,"node_id":"MDU6SXNzdWUzMzg3NTI1NDY=","number":76,"title":"Be able to set a property (like attr.fill) of an attribute based on the data","user":{"login":"melalj","id":3869766,"node_id":"MDQ6VXNlcjM4Njk3NjY=","avatar_url":"https://avatars0.githubusercontent.com/u/3869766?v=4","gravatar_id":"","url":"https://api.github.com/users/melalj","html_url":"https://github.com/melalj","followers_url":"https://api.github.com/users/melalj/followers","following_url":"https://api.github.com/users/melalj/following{/other_user}","gists_url":"https://api.github.com/users/melalj/gists{/gist_id}","starred_url":"https://api.github.com/users/melalj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melalj/subscriptions","organizations_url":"https://api.github.com/users/melalj/orgs","repos_url":"https://api.github.com/users/melalj/repos","events_url":"https://api.github.com/users/melalj/events{/privacy}","received_events_url":"https://api.github.com/users/melalj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-05T23:00:56Z","updated_at":"2018-07-05T23:00:56Z","closed_at":null,"author_association":"MEMBER","body":"We would like to set a color of a marker based on the data.\r\nFor example:\r\n```\r\n.map({\r\n  markers: {\r\n    attr: {\r\n      fill: function(d) {\r\n        if (d.status === 'online') return 'green';\r\n        return 'gray';\r\n    }\r\n  }\r\n})"}}
{"actor":{"display_login":"melalj"}}