{"action":"created","issue":{"url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/421","labels_url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/421/labels{/name}","comments_url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/421/comments","events_url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/421/events","html_url":"https://github.com/pablojim/highcharts-ng/issues/421","id":122589093,"number":421,"title":"Setting series data dynamically causes chart to not animate when displayed.","user":{"login":"incomestore","id":7240589,"avatar_url":"https://avatars.githubusercontent.com/u/7240589?v=3","gravatar_id":"","url":"https://api.github.com/users/incomestore","html_url":"https://github.com/incomestore","followers_url":"https://api.github.com/users/incomestore/followers","following_url":"https://api.github.com/users/incomestore/following{/other_user}","gists_url":"https://api.github.com/users/incomestore/gists{/gist_id}","starred_url":"https://api.github.com/users/incomestore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/incomestore/subscriptions","organizations_url":"https://api.github.com/users/incomestore/orgs","repos_url":"https://api.github.com/users/incomestore/repos","events_url":"https://api.github.com/users/incomestore/events{/privacy}","received_events_url":"https://api.github.com/users/incomestore/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-16T19:58:31Z","updated_at":"2016-01-11T22:27:27Z","closed_at":"2016-01-11T22:27:27Z","body":"I'm having an issue where data set dynamically (from a service) shows the chart, but doesn't animate it. Here's my code:\r\n\r\n**Controller**\r\n\r\n    $scope.chartConfig = {\r\n      // other settings\r\n      series: [{\r\n        data: []\r\n      }],\r\n      // more settings\r\n    };\r\n\r\n    Service.getData().then(function(response) {\r\n      $scope.chartConfig.series[0].data = [\r\n        response.score,\r\n        100 - response.score\r\n      ];\r\n    });\r\n\r\nIs there a better way to be updating data or is there a way to redraw the chart when the data is updated?"},"comment":{"url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/comments/170711377","html_url":"https://github.com/pablojim/highcharts-ng/issues/421#issuecomment-170711377","issue_url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/421","id":170711377,"user":{"login":"pablojim","id":683731,"avatar_url":"https://avatars.githubusercontent.com/u/683731?v=3","gravatar_id":"","url":"https://api.github.com/users/pablojim","html_url":"https://github.com/pablojim","followers_url":"https://api.github.com/users/pablojim/followers","following_url":"https://api.github.com/users/pablojim/following{/other_user}","gists_url":"https://api.github.com/users/pablojim/gists{/gist_id}","starred_url":"https://api.github.com/users/pablojim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pablojim/subscriptions","organizations_url":"https://api.github.com/users/pablojim/orgs","repos_url":"https://api.github.com/users/pablojim/repos","events_url":"https://api.github.com/users/pablojim/events{/privacy}","received_events_url":"https://api.github.com/users/pablojim/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T22:27:27Z","updated_at":"2016-01-11T22:27:27Z","body":"You can see animation happening on data change in the basic example here: http://jsfiddle.net/pablojim/Hjdnw/ (click add data button)\r\n\r\nPlease give me details on how to reproduce this, "}}