{"action":"created","issue":{"url":"https://api.github.com/repos/quintel/etmodel/issues/1839","labels_url":"https://api.github.com/repos/quintel/etmodel/issues/1839/labels{/name}","comments_url":"https://api.github.com/repos/quintel/etmodel/issues/1839/comments","events_url":"https://api.github.com/repos/quintel/etmodel/issues/1839/events","html_url":"https://github.com/quintel/etmodel/issues/1839","id":44985369,"number":1839,"title":"CO2 emissions chart should show local and imported CO2 with separate colors","user":{"login":"ChaelKruip","id":1303760,"avatar_url":"https://avatars.githubusercontent.com/u/1303760?v=3","gravatar_id":"","url":"https://api.github.com/users/ChaelKruip","html_url":"https://github.com/ChaelKruip","followers_url":"https://api.github.com/users/ChaelKruip/followers","following_url":"https://api.github.com/users/ChaelKruip/following{/other_user}","gists_url":"https://api.github.com/users/ChaelKruip/gists{/gist_id}","starred_url":"https://api.github.com/users/ChaelKruip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChaelKruip/subscriptions","organizations_url":"https://api.github.com/users/ChaelKruip/orgs","repos_url":"https://api.github.com/users/ChaelKruip/repos","events_url":"https://api.github.com/users/ChaelKruip/events{/privacy}","received_events_url":"https://api.github.com/users/ChaelKruip/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/quintel/etmodel/labels/clean%20up","name":"clean up","color":"0b02e1"},{"url":"https://api.github.com/repos/quintel/etmodel/labels/features","name":"features","color":"444444"}],"state":"closed","locked":false,"assignee":{"login":"antw","id":4383,"avatar_url":"https://avatars.githubusercontent.com/u/4383?v=3","gravatar_id":"","url":"https://api.github.com/users/antw","html_url":"https://github.com/antw","followers_url":"https://api.github.com/users/antw/followers","following_url":"https://api.github.com/users/antw/following{/other_user}","gists_url":"https://api.github.com/users/antw/gists{/gist_id}","starred_url":"https://api.github.com/users/antw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antw/subscriptions","organizations_url":"https://api.github.com/users/antw/orgs","repos_url":"https://api.github.com/users/antw/repos","events_url":"https://api.github.com/users/antw/events{/privacy}","received_events_url":"https://api.github.com/users/antw/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/quintel/etmodel/milestones/42","html_url":"https://github.com/quintel/etmodel/milestones/Deploy%20September%202015","labels_url":"https://api.github.com/repos/quintel/etmodel/milestones/42/labels","id":942087,"number":42,"title":"Deploy September 2015","description":"","creator":{"login":"antw","id":4383,"avatar_url":"https://avatars.githubusercontent.com/u/4383?v=3","gravatar_id":"","url":"https://api.github.com/users/antw","html_url":"https://github.com/antw","followers_url":"https://api.github.com/users/antw/followers","following_url":"https://api.github.com/users/antw/following{/other_user}","gists_url":"https://api.github.com/users/antw/gists{/gist_id}","starred_url":"https://api.github.com/users/antw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antw/subscriptions","organizations_url":"https://api.github.com/users/antw/orgs","repos_url":"https://api.github.com/users/antw/repos","events_url":"https://api.github.com/users/antw/events{/privacy}","received_events_url":"https://api.github.com/users/antw/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":19,"state":"open","created_at":"2015-01-19T16:09:40Z","updated_at":"2015-09-29T17:13:51Z","due_on":"2015-09-22T22:00:00Z","closed_at":null},"comments":4,"created_at":"2014-10-06T13:51:48Z","updated_at":"2015-09-29T17:13:51Z","closed_at":"2015-09-29T17:13:51Z","body":"Since https://github.com/quintel/etmodel/issues/1835, a new dashboard item has been created to show the CO2 that is emitted locally (excluding CO2 of imported electricity). The chart currently associated with both CO2 dashboard items shows the **total** CO2 (including imported):\r\n![energy_transition_model_-_your_free__independent__comprehensive__fact-based_scenario_builder_](https://cloud.githubusercontent.com/assets/1303760/4526459/64607ee8-4d5f-11e4-9c84-a108cb5ef32b.png)\r\n\r\nIt would be instructive to split the CO2 emissions into two parts: local and imported. I have made the gqueries to accomplish this but the chart is a [hard-coded custom one](https://github.com/quintel/etmodel/blob/master/app/assets/javascripts/d3/co2_emissions.coffee) so adding them in the normal way does not affect the chart.\r\n"},"comment":{"url":"https://api.github.com/repos/quintel/etmodel/issues/comments/144124876","html_url":"https://github.com/quintel/etmodel/issues/1839#issuecomment-144124876","issue_url":"https://api.github.com/repos/quintel/etmodel/issues/1839","id":144124876,"user":{"login":"antw","id":4383,"avatar_url":"https://avatars.githubusercontent.com/u/4383?v=3","gravatar_id":"","url":"https://api.github.com/users/antw","html_url":"https://github.com/antw","followers_url":"https://api.github.com/users/antw/followers","following_url":"https://api.github.com/users/antw/following{/other_user}","gists_url":"https://api.github.com/users/antw/gists{/gist_id}","starred_url":"https://api.github.com/users/antw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antw/subscriptions","organizations_url":"https://api.github.com/users/antw/orgs","repos_url":"https://api.github.com/users/antw/repos","events_url":"https://api.github.com/users/antw/events{/privacy}","received_events_url":"https://api.github.com/users/antw/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T17:13:51Z","updated_at":"2015-09-29T17:13:51Z","body":"On beta.\r\n\r\n![screen shot 2015-09-29 at 18 13 13](https://cloud.githubusercontent.com/assets/4383/10172156/caa7fefc-66d5-11e5-9906-249684b9832c.png)\r\n"}}