{"action":"closed","issue":{"url":"https://api.github.com/repos/gionkunz/chartist-js/issues/1118","repository_url":"https://api.github.com/repos/gionkunz/chartist-js","labels_url":"https://api.github.com/repos/gionkunz/chartist-js/issues/1118/labels{/name}","comments_url":"https://api.github.com/repos/gionkunz/chartist-js/issues/1118/comments","events_url":"https://api.github.com/repos/gionkunz/chartist-js/issues/1118/events","html_url":"https://github.com/gionkunz/chartist-js/issues/1118","id":345034854,"node_id":"MDU6SXNzdWUzNDUwMzQ4NTQ=","number":1118,"title":"Dynamic data for advanced SMIL animations","user":{"login":"Akshay23504","id":8069133,"node_id":"MDQ6VXNlcjgwNjkxMzM=","avatar_url":"https://avatars1.githubusercontent.com/u/8069133?v=4","gravatar_id":"","url":"https://api.github.com/users/Akshay23504","html_url":"https://github.com/Akshay23504","followers_url":"https://api.github.com/users/Akshay23504/followers","following_url":"https://api.github.com/users/Akshay23504/following{/other_user}","gists_url":"https://api.github.com/users/Akshay23504/gists{/gist_id}","starred_url":"https://api.github.com/users/Akshay23504/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Akshay23504/subscriptions","organizations_url":"https://api.github.com/users/Akshay23504/orgs","repos_url":"https://api.github.com/users/Akshay23504/repos","events_url":"https://api.github.com/users/Akshay23504/events{/privacy}","received_events_url":"https://api.github.com/users/Akshay23504/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-26T23:05:04Z","updated_at":"2018-07-27T13:19:34Z","closed_at":"2018-07-27T13:19:34Z","author_association":"NONE","body":"I want to know if there is a way to update the data for advanced SMIL animation chart. Every time I render (every 10 seconds), I need new data. I already have this new data in my JavaScript. I just need to show it upon new creation of the graph.\r\n\r\nSo, inside the chart.on('created'.....), there is a setTimeout function which updates the chart. But this function is chart.update.bind(chart). \r\n\r\nI want to update the data before this. If I use chart.update(newData) inside on created, it goes into an infinite stack and page crashes. I also tried chart.update(newData) inside setTimeout and also inside on created. It did not work. \r\n\r\nWhat is the solution? "}}
{"actor":{"display_login":"Akshay23504"}}