{"action":"created","issue":{"url":"https://api.github.com/repos/GrantMStevens/amCharts-Angular/issues/27","labels_url":"https://api.github.com/repos/GrantMStevens/amCharts-Angular/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/GrantMStevens/amCharts-Angular/issues/27/comments","events_url":"https://api.github.com/repos/GrantMStevens/amCharts-Angular/issues/27/events","html_url":"https://github.com/GrantMStevens/amCharts-Angular/issues/27","id":109300352,"number":27,"title":"Redraw on options change","user":{"login":"asllad","id":14055300,"avatar_url":"https://avatars.githubusercontent.com/u/14055300?v=3","gravatar_id":"","url":"https://api.github.com/users/asllad","html_url":"https://github.com/asllad","followers_url":"https://api.github.com/users/asllad/followers","following_url":"https://api.github.com/users/asllad/following{/other_user}","gists_url":"https://api.github.com/users/asllad/gists{/gist_id}","starred_url":"https://api.github.com/users/asllad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asllad/subscriptions","organizations_url":"https://api.github.com/users/asllad/orgs","repos_url":"https://api.github.com/users/asllad/repos","events_url":"https://api.github.com/users/asllad/events{/privacy}","received_events_url":"https://api.github.com/users/asllad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-01T13:36:32Z","updated_at":"2015-10-22T14:34:25Z","closed_at":null,"body":"It would be nice if there is an redraw for the chart if the options are changed.\r\nI added it on the top of the link function.\r\n\r\n```javascript\r\n    link: function ($scope, $el) {\r\n      $scope.$watch('options', function(newOptions, oldOptions) {\r\n        if (!angular.equals(newOptions, oldOptions)) {\r\n          renderChart(newOptions);\r\n        }\r\n      }, true);\r\n```"},"comment":{"url":"https://api.github.com/repos/GrantMStevens/amCharts-Angular/issues/comments/150243159","html_url":"https://github.com/GrantMStevens/amCharts-Angular/issues/27#issuecomment-150243159","issue_url":"https://api.github.com/repos/GrantMStevens/amCharts-Angular/issues/27","id":150243159,"user":{"login":"GrantMStevens","id":5571479,"avatar_url":"https://avatars.githubusercontent.com/u/5571479?v=3","gravatar_id":"","url":"https://api.github.com/users/GrantMStevens","html_url":"https://github.com/GrantMStevens","followers_url":"https://api.github.com/users/GrantMStevens/followers","following_url":"https://api.github.com/users/GrantMStevens/following{/other_user}","gists_url":"https://api.github.com/users/GrantMStevens/gists{/gist_id}","starred_url":"https://api.github.com/users/GrantMStevens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrantMStevens/subscriptions","organizations_url":"https://api.github.com/users/GrantMStevens/orgs","repos_url":"https://api.github.com/users/GrantMStevens/repos","events_url":"https://api.github.com/users/GrantMStevens/events{/privacy}","received_events_url":"https://api.github.com/users/GrantMStevens/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T14:34:25Z","updated_at":"2015-10-22T14:34:25Z","body":"Yes, you can use 'amCharts.updateData' to redraw when you have new data. If you need to update other properties on the chart, you can use 'amCharts.renderChart' to completely rerender the chart."}}