{"action":"created","issue":{"url":"https://api.github.com/repos/dc-js/dc.js/issues/1277","repository_url":"https://api.github.com/repos/dc-js/dc.js","labels_url":"https://api.github.com/repos/dc-js/dc.js/issues/1277/labels{/name}","comments_url":"https://api.github.com/repos/dc-js/dc.js/issues/1277/comments","events_url":"https://api.github.com/repos/dc-js/dc.js/issues/1277/events","html_url":"https://github.com/dc-js/dc.js/issues/1277","id":206497297,"number":1277,"title":"dc.js pie-chart combine 2 columns","user":{"login":"gubzh","id":25663522,"avatar_url":"https://avatars.githubusercontent.com/u/25663522?v=3","gravatar_id":"","url":"https://api.github.com/users/gubzh","html_url":"https://github.com/gubzh","followers_url":"https://api.github.com/users/gubzh/followers","following_url":"https://api.github.com/users/gubzh/following{/other_user}","gists_url":"https://api.github.com/users/gubzh/gists{/gist_id}","starred_url":"https://api.github.com/users/gubzh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gubzh/subscriptions","organizations_url":"https://api.github.com/users/gubzh/orgs","repos_url":"https://api.github.com/users/gubzh/repos","events_url":"https://api.github.com/users/gubzh/events{/privacy}","received_events_url":"https://api.github.com/users/gubzh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-09T13:03:00Z","updated_at":"2017-02-09T14:57:20Z","closed_at":"2017-02-09T14:48:42Z","body":"I have a table.\r\n\r\nyear,continent,state,export_value,import_value,all\r\n2013,Африка,Angola,94061754,220518.54,94282272.54\r\n2013,Африка,Burundi,4136818,1239175.91,5375993.91\r\n2013,Африка,Benin,3251643.49,65421.6,3317065.09\r\n\r\nI need to make a pie chart using dc.js:\r\n\r\n[https://i.stack.imgur.com/9jSq8.jpg](url)\r\n\r\nHere is what I tried:\r\n\r\n    impexDim            = ndx.dimension(function (d) {return ((d.export_value > 0 ? 'Export' : 'Import') \r\n                                        && (d.import_value > 0 ? 'Import' : 'Export')) ;}),\r\n\r\n    groupeimpexDim      = impexDim.group().reduceSum(function(d) {return +d.all}),\r\nHow do I combine the columns export_value and import_value?"},"comment":{"url":"https://api.github.com/repos/dc-js/dc.js/issues/comments/278665794","html_url":"https://github.com/dc-js/dc.js/issues/1277#issuecomment-278665794","issue_url":"https://api.github.com/repos/dc-js/dc.js/issues/1277","id":278665794,"user":{"login":"gordonwoodhull","id":1366709,"avatar_url":"https://avatars.githubusercontent.com/u/1366709?v=3","gravatar_id":"","url":"https://api.github.com/users/gordonwoodhull","html_url":"https://github.com/gordonwoodhull","followers_url":"https://api.github.com/users/gordonwoodhull/followers","following_url":"https://api.github.com/users/gordonwoodhull/following{/other_user}","gists_url":"https://api.github.com/users/gordonwoodhull/gists{/gist_id}","starred_url":"https://api.github.com/users/gordonwoodhull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gordonwoodhull/subscriptions","organizations_url":"https://api.github.com/users/gordonwoodhull/orgs","repos_url":"https://api.github.com/users/gordonwoodhull/repos","events_url":"https://api.github.com/users/gordonwoodhull/events{/privacy}","received_events_url":"https://api.github.com/users/gordonwoodhull/received_events","type":"User","site_admin":false},"created_at":"2017-02-09T14:57:20Z","updated_at":"2017-02-09T14:57:20Z","body":"http://stackoverflow.com/q/42135743/676195"}}
{"actor":{"display_login":"gordonwoodhull"}}