{"action":"created","issue":{"url":"https://api.github.com/repos/TomNeyland/angular-dc/issues/53","repository_url":"https://api.github.com/repos/TomNeyland/angular-dc","labels_url":"https://api.github.com/repos/TomNeyland/angular-dc/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/TomNeyland/angular-dc/issues/53/comments","events_url":"https://api.github.com/repos/TomNeyland/angular-dc/issues/53/events","html_url":"https://github.com/TomNeyland/angular-dc/issues/53","id":140501817,"number":53,"title":"Responsive charts","user":{"login":"aferre","id":570643,"avatar_url":"https://avatars.githubusercontent.com/u/570643?v=3","gravatar_id":"","url":"https://api.github.com/users/aferre","html_url":"https://github.com/aferre","followers_url":"https://api.github.com/users/aferre/followers","following_url":"https://api.github.com/users/aferre/following{/other_user}","gists_url":"https://api.github.com/users/aferre/gists{/gist_id}","starred_url":"https://api.github.com/users/aferre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aferre/subscriptions","organizations_url":"https://api.github.com/users/aferre/orgs","repos_url":"https://api.github.com/users/aferre/repos","events_url":"https://api.github.com/users/aferre/events{/privacy}","received_events_url":"https://api.github.com/users/aferre/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-13T16:25:27Z","updated_at":"2016-03-14T08:18:17Z","closed_at":"2016-03-14T08:18:17Z","body":"Hi,\r\n\r\nI am having trouble trying to resize charts on window resize:\r\n\r\nangular.element($window).bind('resize', function(){      \r\n            $scope.width = $window.innerWidth;\r\n            $log.log('new windows size ' + $scope.width);\r\n            var list = dc.chartRegistry.list();\r\n            for (var i in list){\r\n            \tvar chartS = list[i];\r\n            \tif (typeof chartS.rescale === 'function'){\r\n            \t\tchartS.width($window.innerWidth);\r\n            \t\tchartS.rescale();\r\n            \t\tchartS.redraw();\r\n            \t}\r\n            }\r\n          });\r\n\r\nThis seems to be only rescaling the data displayed, but not the axis (both on line chart and range-bar chart).\r\n\r\nIs there a proper way to do this?"},"comment":{"url":"https://api.github.com/repos/TomNeyland/angular-dc/issues/comments/196194913","html_url":"https://github.com/TomNeyland/angular-dc/issues/53#issuecomment-196194913","issue_url":"https://api.github.com/repos/TomNeyland/angular-dc/issues/53","id":196194913,"user":{"login":"aferre","id":570643,"avatar_url":"https://avatars.githubusercontent.com/u/570643?v=3","gravatar_id":"","url":"https://api.github.com/users/aferre","html_url":"https://github.com/aferre","followers_url":"https://api.github.com/users/aferre/followers","following_url":"https://api.github.com/users/aferre/following{/other_user}","gists_url":"https://api.github.com/users/aferre/gists{/gist_id}","starred_url":"https://api.github.com/users/aferre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aferre/subscriptions","organizations_url":"https://api.github.com/users/aferre/orgs","repos_url":"https://api.github.com/users/aferre/repos","events_url":"https://api.github.com/users/aferre/events{/privacy}","received_events_url":"https://api.github.com/users/aferre/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T08:18:17Z","updated_at":"2016-03-14T08:18:17Z","body":"Hi,\r\n\r\nIndeed, it is resolved by updating to 2.0.0 beta 27\r\n\r\nThank for your quick reply"}}