{"action":"created","issue":{"url":"https://api.github.com/repos/recharts/recharts/issues/209","repository_url":"https://api.github.com/repos/recharts/recharts","labels_url":"https://api.github.com/repos/recharts/recharts/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/recharts/recharts/issues/209/comments","events_url":"https://api.github.com/repos/recharts/recharts/issues/209/events","html_url":"https://github.com/recharts/recharts/issues/209","id":175140712,"number":209,"title":"Stacked chart legend has the wrong order","user":{"login":"SachaG","id":358832,"avatar_url":"https://avatars.githubusercontent.com/u/358832?v=3","gravatar_id":"","url":"https://api.github.com/users/SachaG","html_url":"https://github.com/SachaG","followers_url":"https://api.github.com/users/SachaG/followers","following_url":"https://api.github.com/users/SachaG/following{/other_user}","gists_url":"https://api.github.com/users/SachaG/gists{/gist_id}","starred_url":"https://api.github.com/users/SachaG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SachaG/subscriptions","organizations_url":"https://api.github.com/users/SachaG/orgs","repos_url":"https://api.github.com/users/SachaG/repos","events_url":"https://api.github.com/users/SachaG/events{/privacy}","received_events_url":"https://api.github.com/users/SachaG/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-06T00:49:59Z","updated_at":"2016-09-17T00:41:53Z","closed_at":null,"body":"It seems like stack charts legends get generated with the wrong order. Assuming you have:\r\n\r\n```\r\n    \t<BarChart width={600} height={300} data={data}\r\n            margin={{top: 20, right: 30, left: 20, bottom: 5}}>\r\n       <Bar dataKey=\"pv\" stackId=\"a\" fill=\"#8884d8\" />\r\n       <Bar dataKey=\"uv\" stackId=\"a\" fill=\"#82ca9d\" />\r\n      </BarChart>\r\n```\r\n\r\nBar `uv` will appear on top, and `pv` on bottom (see http://recharts.org/examples/#StackedBarChart). \r\n\r\nThe problem is that the legend has `pv` first, and `uv` second. Which is confusing especially if you chose to use a vertical layout. "},"comment":{"url":"https://api.github.com/repos/recharts/recharts/issues/comments/247738273","html_url":"https://github.com/recharts/recharts/issues/209#issuecomment-247738273","issue_url":"https://api.github.com/repos/recharts/recharts/issues/209","id":247738273,"user":{"login":"SachaG","id":358832,"avatar_url":"https://avatars.githubusercontent.com/u/358832?v=3","gravatar_id":"","url":"https://api.github.com/users/SachaG","html_url":"https://github.com/SachaG","followers_url":"https://api.github.com/users/SachaG/followers","following_url":"https://api.github.com/users/SachaG/following{/other_user}","gists_url":"https://api.github.com/users/SachaG/gists{/gist_id}","starred_url":"https://api.github.com/users/SachaG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SachaG/subscriptions","organizations_url":"https://api.github.com/users/SachaG/orgs","repos_url":"https://api.github.com/users/SachaG/repos","events_url":"https://api.github.com/users/SachaG/events{/privacy}","received_events_url":"https://api.github.com/users/SachaG/received_events","type":"User","site_admin":false},"created_at":"2016-09-17T00:41:53Z","updated_at":"2016-09-17T00:41:53Z","body":"Any thoughts? Would you accept a PR to add an `order` prop to `Legend`?"}}
{"actor":{"display_login":"SachaG"}}