{"action":"created","issue":{"url":"https://api.github.com/repos/grafana/grafana/issues/5828","repository_url":"https://api.github.com/repos/grafana/grafana","labels_url":"https://api.github.com/repos/grafana/grafana/issues/5828/labels{/name}","comments_url":"https://api.github.com/repos/grafana/grafana/issues/5828/comments","events_url":"https://api.github.com/repos/grafana/grafana/issues/5828/events","html_url":"https://github.com/grafana/grafana/issues/5828","id":171366382,"number":5828,"title":"Legend and graph don't have the same colors","user":{"login":"Alucardfh","id":1701397,"avatar_url":"https://avatars1.githubusercontent.com/u/1701397?v=4","gravatar_id":"","url":"https://api.github.com/users/Alucardfh","html_url":"https://github.com/Alucardfh","followers_url":"https://api.github.com/users/Alucardfh/followers","following_url":"https://api.github.com/users/Alucardfh/following{/other_user}","gists_url":"https://api.github.com/users/Alucardfh/gists{/gist_id}","starred_url":"https://api.github.com/users/Alucardfh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alucardfh/subscriptions","organizations_url":"https://api.github.com/users/Alucardfh/orgs","repos_url":"https://api.github.com/users/Alucardfh/repos","events_url":"https://api.github.com/users/Alucardfh/events{/privacy}","received_events_url":"https://api.github.com/users/Alucardfh/received_events","type":"User","site_admin":false},"labels":[{"id":108770151,"url":"https://api.github.com/repos/grafana/grafana/labels/comp:%20panel/graph","name":"comp: panel/graph","color":"c7def8","default":false},{"id":70176318,"url":"https://api.github.com/repos/grafana/grafana/labels/type:%20bug","name":"type: bug","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-08-16T09:38:34Z","updated_at":"2018-03-07T15:27:22Z","closed_at":null,"author_association":"NONE","body":"- **I'm submitting a ...**\n- [x] Bug report\n\nPlease include this information:\n- What Grafana version are you using?\n  --> 3.1.0\n- What datasource are you using?\n  --> InfluxDB\n- What OS are you running grafana on?\n  --> Centos 7.2\n- What did you do?\n  --> Create a graph with templating variable and two stack series\n- What was the expected result?\n  -->Graph is displayed and legend colors match graph colors\n- What happened instead?\n  --> In some cases colors don't match between legend and graph\n\nThe line pointed by the arrow in the graph below is what in the legend is called \"gpc backlog cores\"\nThe legend shows it as a shade of blue ... but is quite red on the graph !\n\n![image](https://cloud.githubusercontent.com/assets/1701397/17694624/9d5c6360-639c-11e6-9021-a102cd6d765a.png)\n\nIf you untick all others lines first it stay red (\"Total cores\" is the reference point and all metrics named *backlog are stacked above it, all metrics named *used are stacked under)\n\n![image](https://cloud.githubusercontent.com/assets/1701397/17694315/296277f2-639b-11e6-8849-2dc32cb521d3.png)\n\nBut if you untick everything and tick \"gpc backlog cores\" first it shows with the right color !\n\n![image](https://cloud.githubusercontent.com/assets/1701397/17694344/4c7adb12-639b-11e6-8ffb-ce3b9171e0ec.png)\n\nBelow is the query definitions :\n![image](https://cloud.githubusercontent.com/assets/1701397/17694440/ce171492-639b-11e6-9ebe-6ed275e039e6.png)\n\nAnd here are the series specific options:\n![image](https://cloud.githubusercontent.com/assets/1701397/17694454/dab140e2-639b-11e6-8e0f-f641be72fdfc.png)\n\nHere is the templating variable used: \n![image](https://cloud.githubusercontent.com/assets/1701397/17694792/7b47302e-639d-11e6-865f-bc273fa3e373.png)\n\nI have attached a sample of the data\n[grafana_data_export.zip](https://github.com/grafana/grafana/files/419893/grafana_data_export.zip)\n\nAnd the full json definition of the panel:\n[panel.json.txt](https://github.com/grafana/grafana/files/419894/panel.json.txt)\n"},"comment":{"url":"https://api.github.com/repos/grafana/grafana/issues/comments/371174833","html_url":"https://github.com/grafana/grafana/issues/5828#issuecomment-371174833","issue_url":"https://api.github.com/repos/grafana/grafana/issues/5828","id":371174833,"user":{"login":"clinta","id":3177437,"avatar_url":"https://avatars1.githubusercontent.com/u/3177437?v=4","gravatar_id":"","url":"https://api.github.com/users/clinta","html_url":"https://github.com/clinta","followers_url":"https://api.github.com/users/clinta/followers","following_url":"https://api.github.com/users/clinta/following{/other_user}","gists_url":"https://api.github.com/users/clinta/gists{/gist_id}","starred_url":"https://api.github.com/users/clinta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clinta/subscriptions","organizations_url":"https://api.github.com/users/clinta/orgs","repos_url":"https://api.github.com/users/clinta/repos","events_url":"https://api.github.com/users/clinta/events{/privacy}","received_events_url":"https://api.github.com/users/clinta/received_events","type":"User","site_admin":false},"created_at":"2018-03-07T15:27:22Z","updated_at":"2018-03-07T15:27:22Z","author_association":"NONE","body":"I'm also seeing this issue, here's an example of it\r\n\r\n ![](https://i.imgur.com/kTGARhX.gif)"}}
{"actor":{"display_login":"clinta"}}