{"action":"created","issue":{"url":"https://api.github.com/repos/krispo/angular-nvd3/issues/100","labels_url":"https://api.github.com/repos/krispo/angular-nvd3/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/krispo/angular-nvd3/issues/100/comments","events_url":"https://api.github.com/repos/krispo/angular-nvd3/issues/100/events","html_url":"https://github.com/krispo/angular-nvd3/issues/100","id":64321762,"number":100,"title":"multiBarHorizontalChart not reading stacked option properly","user":{"login":"inolasco","id":1035978,"avatar_url":"https://avatars.githubusercontent.com/u/1035978?v=3","gravatar_id":"","url":"https://api.github.com/users/inolasco","html_url":"https://github.com/inolasco","followers_url":"https://api.github.com/users/inolasco/followers","following_url":"https://api.github.com/users/inolasco/following{/other_user}","gists_url":"https://api.github.com/users/inolasco/gists{/gist_id}","starred_url":"https://api.github.com/users/inolasco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inolasco/subscriptions","organizations_url":"https://api.github.com/users/inolasco/orgs","repos_url":"https://api.github.com/users/inolasco/repos","events_url":"https://api.github.com/users/inolasco/events{/privacy}","received_events_url":"https://api.github.com/users/inolasco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-25T17:07:41Z","updated_at":"2015-05-05T22:34:38Z","closed_at":null,"body":"It seems angular-nvd3 is treating the stacked parameter as an object instead of a boolean as it should be. So charts which had stacked: true are not correctly set as stacked.\r\n\r\nRemoving `'stacked'` from :\r\n\r\n                                else if ([\r\n                                    ....\r\n                                    'stack2',\r\n                                    'stacked',\r\n                                    'multibar',\r\n                                    ...\r\n                                ].indexOf(key) >= 0){\r\n                                    if (options.chart[key] === undefined || options.chart[key] === null) {\r\n                                        if (scope._config.extended) options.chart[key] = {};\r\n                                    }\r\n                                    configure(scope.chart[key], options.chart[key], options.chart.type);\r\n                                }\r\n\r\nSeems to fix it\r\n\r\nThis issue may apply to other bar chart variants as well"},"comment":{"url":"https://api.github.com/repos/krispo/angular-nvd3/issues/comments/99251454","html_url":"https://github.com/krispo/angular-nvd3/issues/100#issuecomment-99251454","issue_url":"https://api.github.com/repos/krispo/angular-nvd3/issues/100","id":99251454,"user":{"login":"ywplee","id":704315,"avatar_url":"https://avatars.githubusercontent.com/u/704315?v=3","gravatar_id":"","url":"https://api.github.com/users/ywplee","html_url":"https://github.com/ywplee","followers_url":"https://api.github.com/users/ywplee/followers","following_url":"https://api.github.com/users/ywplee/following{/other_user}","gists_url":"https://api.github.com/users/ywplee/gists{/gist_id}","starred_url":"https://api.github.com/users/ywplee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ywplee/subscriptions","organizations_url":"https://api.github.com/users/ywplee/orgs","repos_url":"https://api.github.com/users/ywplee/repos","events_url":"https://api.github.com/users/ywplee/events{/privacy}","received_events_url":"https://api.github.com/users/ywplee/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T22:34:38Z","updated_at":"2015-05-05T22:34:38Z","body":"Is there a permanent fix for this implemented yet? \r\nIf not, I can create a pull request based on the solution shown in the following code. I'm just adding a case handler for 'stackedAreaChart' model's stacked event (assuming stacked event gets only generated from the StackedAreaChart and 'stacked' property is used as an option on the other models). \r\n```\r\nelse if ([\r\n    'lines',\r\n    'lines1',\r\n    'lines2',\r\n    'bars',\r\n    'bars1',\r\n    'bars2',\r\n    'stack1',\r\n    'stack2',\r\n    'stacked',\r\n    'multibar',\r\n    'discretebar',\r\n    'pie',\r\n    'scatter',\r\n    'bullet',\r\n    'sparkline',\r\n    'legend',\r\n    'distX',\r\n    'distY',\r\n    'xAxis',\r\n    'x2Axis',\r\n    'yAxis',\r\n    'yAxis1',\r\n    'yAxis2',\r\n    'y1Axis',\r\n    'y2Axis',\r\n    'y3Axis',\r\n    'y4Axis',\r\n    'interactiveLayer',\r\n    'controls'\r\n].indexOf(key) >= 0){\r\n    // special case handler for stackedAreaChart model's stacked event\r\n    // stacked is an option on the other models\r\n    if (key === 'stacked' && options.chart.type !== 'stackedAreaChart') {\r\n        scope.chart[key](options.chart[key]);\r\n    } \r\n    else {\r\n        if (options.chart[key] === undefined || options.chart[key] === null) {\r\n            if (scope._config.extended) {\r\n                options.chart[key] = {};\r\n            }\r\n        }\r\n        configure(scope.chart[key], options.chart[key], options.chart.type);\r\n    }\r\n}\r\n```"}}