{"action":"created","issue":{"url":"https://api.github.com/repos/grofit/aurelia-chart/issues/7","repository_url":"https://api.github.com/repos/grofit/aurelia-chart","labels_url":"https://api.github.com/repos/grofit/aurelia-chart/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/grofit/aurelia-chart/issues/7/comments","events_url":"https://api.github.com/repos/grofit/aurelia-chart/issues/7/events","html_url":"https://github.com/grofit/aurelia-chart/issues/7","id":149502777,"number":7,"title":"Chart binding issue","user":{"login":"hopkins700","id":3928121,"avatar_url":"https://avatars.githubusercontent.com/u/3928121?v=3","gravatar_id":"","url":"https://api.github.com/users/hopkins700","html_url":"https://github.com/hopkins700","followers_url":"https://api.github.com/users/hopkins700/followers","following_url":"https://api.github.com/users/hopkins700/following{/other_user}","gists_url":"https://api.github.com/users/hopkins700/gists{/gist_id}","starred_url":"https://api.github.com/users/hopkins700/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hopkins700/subscriptions","organizations_url":"https://api.github.com/users/hopkins700/orgs","repos_url":"https://api.github.com/users/hopkins700/repos","events_url":"https://api.github.com/users/hopkins700/events{/privacy}","received_events_url":"https://api.github.com/users/hopkins700/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2016-04-19T15:51:37Z","updated_at":"2016-05-03T16:01:58Z","closed_at":null,"body":"I have a chart which is bound to 'data' property as it is shown in the sample:\r\n\r\n`<canvas chart=\"type: Bar; data.bind:chartData; throttle: 100; should-update:true\" style=\"width:100%; height: 100%;\"></canvas>`\r\n\r\n\"data\" property returns data which has the following format\r\n\r\nreturn {\r\n      labels:[...],\r\n      datasets:[{\r\n        fillColor:'#ee5315',\r\n        data:[...]\r\n      }]};\r\n\r\nFor some reason the data binding works fine only first two times and then the chart stops working and shows the old data. Any ideas why could it happen?\r\nSome other elements on the page are bound to the same \"data\" property so I'm sure that there are no issues on my side."},"comment":{"url":"https://api.github.com/repos/grofit/aurelia-chart/issues/comments/216577163","html_url":"https://github.com/grofit/aurelia-chart/issues/7#issuecomment-216577163","issue_url":"https://api.github.com/repos/grofit/aurelia-chart/issues/7","id":216577163,"user":{"login":"grofit","id":927201,"avatar_url":"https://avatars.githubusercontent.com/u/927201?v=3","gravatar_id":"","url":"https://api.github.com/users/grofit","html_url":"https://github.com/grofit","followers_url":"https://api.github.com/users/grofit/followers","following_url":"https://api.github.com/users/grofit/following{/other_user}","gists_url":"https://api.github.com/users/grofit/gists{/gist_id}","starred_url":"https://api.github.com/users/grofit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grofit/subscriptions","organizations_url":"https://api.github.com/users/grofit/orgs","repos_url":"https://api.github.com/users/grofit/repos","events_url":"https://api.github.com/users/grofit/events{/privacy}","received_events_url":"https://api.github.com/users/grofit/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T16:01:57Z","updated_at":"2016-05-03T16:01:57Z","body":"hey so I think I may have some idea what your problem is after looking over your stuff again, depending upon what sort of charts you are using, this plugin \"currently\" uses the 1.x syntax for chart js not the 2.x syntax.\r\n\r\nThere is some work happening to update to the version 2 syntax which can be seen in the `chart-js-2` branch (mentioned in #10), so you can either confirm you are using the 1.x style syntax for your charts, or you can try the version 2 branch, or alternatively just wait until the branch is promoted to master and see if that helps."}}