{"action":"closed","issue":{"url":"https://api.github.com/repos/react-d3/react-d3-map/issues/25","repository_url":"https://api.github.com/repos/react-d3/react-d3-map","labels_url":"https://api.github.com/repos/react-d3/react-d3-map/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/react-d3/react-d3-map/issues/25/comments","events_url":"https://api.github.com/repos/react-d3/react-d3-map/issues/25/events","html_url":"https://github.com/react-d3/react-d3-map/issues/25","id":155718918,"number":25,"title":"Question about Polygons","user":{"login":"bendulum","id":2833178,"avatar_url":"https://avatars.githubusercontent.com/u/2833178?v=3","gravatar_id":"","url":"https://api.github.com/users/bendulum","html_url":"https://github.com/bendulum","followers_url":"https://api.github.com/users/bendulum/followers","following_url":"https://api.github.com/users/bendulum/following{/other_user}","gists_url":"https://api.github.com/users/bendulum/gists{/gist_id}","starred_url":"https://api.github.com/users/bendulum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendulum/subscriptions","organizations_url":"https://api.github.com/users/bendulum/orgs","repos_url":"https://api.github.com/users/bendulum/repos","events_url":"https://api.github.com/users/bendulum/events{/privacy}","received_events_url":"https://api.github.com/users/bendulum/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-19T11:55:12Z","updated_at":"2016-05-19T17:31:43Z","closed_at":"2016-05-19T17:31:43Z","body":"I'm trying to draw polygons on a map as seen in this example:\r\nhttp://interactive.reactd3.org/test-multipolygon.html\r\n\r\nAnd furthermore fill each polygon (country) in a different color with different opacity.\r\n\r\nIs this possible? How would I go about this?\r\nIs it just a matter of setting CSS `fill` and `fill-opacity` on each polygon `path`,\r\nor is there a smarter way of doing this?\r\nFor example when the JSON data is passed to the component via `data={data}`,\r\ncan the internal loop be hijacked to dynamically change the `path` elements it renders?\r\n\r\nThank you for any pointers."}}