{"action":"created","issue":{"url":"https://api.github.com/repos/paradox41/angular-chartist.js/issues/63","labels_url":"https://api.github.com/repos/paradox41/angular-chartist.js/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/paradox41/angular-chartist.js/issues/63/comments","events_url":"https://api.github.com/repos/paradox41/angular-chartist.js/issues/63/events","html_url":"https://github.com/paradox41/angular-chartist.js/issues/63","id":118582156,"number":63,"title":"Trigger an update","user":{"login":"DonSanto","id":1021604,"avatar_url":"https://avatars.githubusercontent.com/u/1021604?v=3","gravatar_id":"","url":"https://api.github.com/users/DonSanto","html_url":"https://github.com/DonSanto","followers_url":"https://api.github.com/users/DonSanto/followers","following_url":"https://api.github.com/users/DonSanto/following{/other_user}","gists_url":"https://api.github.com/users/DonSanto/gists{/gist_id}","starred_url":"https://api.github.com/users/DonSanto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DonSanto/subscriptions","organizations_url":"https://api.github.com/users/DonSanto/orgs","repos_url":"https://api.github.com/users/DonSanto/repos","events_url":"https://api.github.com/users/DonSanto/events{/privacy}","received_events_url":"https://api.github.com/users/DonSanto/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-24T10:58:21Z","updated_at":"2015-11-24T11:05:57Z","closed_at":"2015-11-24T11:05:57Z","body":"I'm trying to understand how I can trigger an update on a chart when becoming visible i a tab. How would I typically get a reference to that chart?"},"comment":{"url":"https://api.github.com/repos/paradox41/angular-chartist.js/issues/comments/159231264","html_url":"https://github.com/paradox41/angular-chartist.js/issues/63#issuecomment-159231264","issue_url":"https://api.github.com/repos/paradox41/angular-chartist.js/issues/63","id":159231264,"user":{"login":"DonSanto","id":1021604,"avatar_url":"https://avatars.githubusercontent.com/u/1021604?v=3","gravatar_id":"","url":"https://api.github.com/users/DonSanto","html_url":"https://github.com/DonSanto","followers_url":"https://api.github.com/users/DonSanto/followers","following_url":"https://api.github.com/users/DonSanto/following{/other_user}","gists_url":"https://api.github.com/users/DonSanto/gists{/gist_id}","starred_url":"https://api.github.com/users/DonSanto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DonSanto/subscriptions","organizations_url":"https://api.github.com/users/DonSanto/orgs","repos_url":"https://api.github.com/users/DonSanto/repos","events_url":"https://api.github.com/users/DonSanto/events{/privacy}","received_events_url":"https://api.github.com/users/DonSanto/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T11:05:57Z","updated_at":"2015-11-24T11:05:57Z","body":"Ok, i figured it out. This is one way to do it:\r\n\r\n```javascript\r\n$timeout(function() {\r\n    angular.element('[chartist]').each(function(i, elm) {\r\n        elm.__chartist__.update();\r\n    });\r\n}, 0);\r\n```"}}