{"action":"created","issue":{"url":"https://api.github.com/repos/oxyplot/oxyplot/issues/643","labels_url":"https://api.github.com/repos/oxyplot/oxyplot/issues/643/labels{/name}","comments_url":"https://api.github.com/repos/oxyplot/oxyplot/issues/643/comments","events_url":"https://api.github.com/repos/oxyplot/oxyplot/issues/643/events","html_url":"https://github.com/oxyplot/oxyplot/issues/643","id":115590663,"number":643,"title":"Grouping Legend by Axis","user":{"login":"axg1010","id":6162211,"avatar_url":"https://avatars.githubusercontent.com/u/6162211?v=3","gravatar_id":"","url":"https://api.github.com/users/axg1010","html_url":"https://github.com/axg1010","followers_url":"https://api.github.com/users/axg1010/followers","following_url":"https://api.github.com/users/axg1010/following{/other_user}","gists_url":"https://api.github.com/users/axg1010/gists{/gist_id}","starred_url":"https://api.github.com/users/axg1010/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axg1010/subscriptions","organizations_url":"https://api.github.com/users/axg1010/orgs","repos_url":"https://api.github.com/users/axg1010/repos","events_url":"https://api.github.com/users/axg1010/events{/privacy}","received_events_url":"https://api.github.com/users/axg1010/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/oxyplot/oxyplot/labels/architecture","name":"architecture","color":"006b75"},{"url":"https://api.github.com/repos/oxyplot/oxyplot/labels/hold","name":"hold","color":"eb6420"},{"url":"https://api.github.com/repos/oxyplot/oxyplot/labels/legend","name":"legend","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-06T21:09:08Z","updated_at":"2015-11-07T07:42:13Z","closed_at":null,"body":"When using multiple axes, it can be hard to discern which series belong to which axis. I've added a property (LegendGrouping) to PlotModel which can be set to group by X-Axis, Y-Axis, or None (works as before). If set to group (either by X or Y axis), each entry in the legend appears under the name of it's respective axis (one heading per axis). I've used and appreciated OxyPlot for a while now. Personally this is a feature I'm in need of and hope that others will find it useful too.\r\n\r\nDisclaimer:\r\nI am new to Git and contributing to open source projects in general. I'm attempting to follow the procedure [here](https://github.com/oxyplot/oxyplot/blob/develop/CONTRIBUTING.md). Although I've already implemented this feature on my local machine, I believe I am suppose to create this issue and wait for it to be tagged in order for me to create a pull request. Please let me know if this is not correct."},"comment":{"url":"https://api.github.com/repos/oxyplot/oxyplot/issues/comments/154650842","html_url":"https://github.com/oxyplot/oxyplot/issues/643#issuecomment-154650842","issue_url":"https://api.github.com/repos/oxyplot/oxyplot/issues/643","id":154650842,"user":{"login":"objorke","id":439716,"avatar_url":"https://avatars.githubusercontent.com/u/439716?v=3","gravatar_id":"","url":"https://api.github.com/users/objorke","html_url":"https://github.com/objorke","followers_url":"https://api.github.com/users/objorke/followers","following_url":"https://api.github.com/users/objorke/following{/other_user}","gists_url":"https://api.github.com/users/objorke/gists{/gist_id}","starred_url":"https://api.github.com/users/objorke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/objorke/subscriptions","organizations_url":"https://api.github.com/users/objorke/orgs","repos_url":"https://api.github.com/users/objorke/repos","events_url":"https://api.github.com/users/objorke/events{/privacy}","received_events_url":"https://api.github.com/users/objorke/received_events","type":"User","site_admin":false},"created_at":"2015-11-07T07:42:13Z","updated_at":"2015-11-07T07:42:13Z","body":"Good idea! But I think we need some discussion here! I remember there has been some other discussion about legends - like adding multiple legend boxes (then you could show all legends related to an axis next to the axis). This requires some refactoring, at least in the layout (measure/arrange) engine. I think the first step could be to add a `Legends` property (a collection like `Axes` and `Series`) to the `PlotModel`. All the current legend properties should then be moved into a default implementation of a \"legend box\" (breaking change)... This should make the legends extendable and it should be implement grouping as you suggest!\r\n\r\nYes, please follow the contributing guidelines! Would you like to take the challenge to refactor the legend architecture?"}}