{"action":"created","issue":{"url":"https://api.github.com/repos/nnnick/Chart.js/issues/718","labels_url":"https://api.github.com/repos/nnnick/Chart.js/issues/718/labels{/name}","comments_url":"https://api.github.com/repos/nnnick/Chart.js/issues/718/comments","events_url":"https://api.github.com/repos/nnnick/Chart.js/issues/718/events","html_url":"https://github.com/nnnick/Chart.js/issues/718","id":46713718,"number":718,"title":"update() should animate color changes too","user":{"login":"jbrooksuk","id":246103,"avatar_url":"https://avatars.githubusercontent.com/u/246103?v=3","gravatar_id":"","url":"https://api.github.com/users/jbrooksuk","html_url":"https://github.com/jbrooksuk","followers_url":"https://api.github.com/users/jbrooksuk/followers","following_url":"https://api.github.com/users/jbrooksuk/following{/other_user}","gists_url":"https://api.github.com/users/jbrooksuk/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrooksuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrooksuk/subscriptions","organizations_url":"https://api.github.com/users/jbrooksuk/orgs","repos_url":"https://api.github.com/users/jbrooksuk/repos","events_url":"https://api.github.com/users/jbrooksuk/events{/privacy}","received_events_url":"https://api.github.com/users/jbrooksuk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nnnick/Chart.js/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-10-24T08:11:33Z","updated_at":"2015-01-16T00:21:46Z","closed_at":null,"body":"We're using Chart.js to display a pie chart which shows how close we are to a target. Once the target is hit, the color changes to denote that we've hit it and that we're now over.\r\n\r\nIn my interval, I'm doing:\r\n\r\n```js\r\nthis.chart.segments[0].value = results.currently;\r\nthis.chart.segments[0].color = results.times < 1 ? \"#ED7669\" : \"#F5D451\";\r\nthis.chart.segments[1].value = results.target;\r\nthis.chart.segments[1].color = results.times < 1 ? \"#BFE1ED\" : \"#F1C40F\";\r\nthis.chart.update();\r\n```\r\n\r\nBut the `color` value isn't being respected."},"comment":{"url":"https://api.github.com/repos/nnnick/Chart.js/issues/comments/70188543","html_url":"https://github.com/nnnick/Chart.js/issues/718#issuecomment-70188543","issue_url":"https://api.github.com/repos/nnnick/Chart.js/issues/718","id":70188543,"user":{"login":"tannerlinsley","id":5580297,"avatar_url":"https://avatars.githubusercontent.com/u/5580297?v=3","gravatar_id":"","url":"https://api.github.com/users/tannerlinsley","html_url":"https://github.com/tannerlinsley","followers_url":"https://api.github.com/users/tannerlinsley/followers","following_url":"https://api.github.com/users/tannerlinsley/following{/other_user}","gists_url":"https://api.github.com/users/tannerlinsley/gists{/gist_id}","starred_url":"https://api.github.com/users/tannerlinsley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tannerlinsley/subscriptions","organizations_url":"https://api.github.com/users/tannerlinsley/orgs","repos_url":"https://api.github.com/users/tannerlinsley/repos","events_url":"https://api.github.com/users/tannerlinsley/events{/privacy}","received_events_url":"https://api.github.com/users/tannerlinsley/received_events","type":"User","site_admin":false},"created_at":"2015-01-16T00:21:46Z","updated_at":"2015-01-16T00:21:46Z","body":"I have also run into this problem and ended up having to change the color and \"_saved\" color of the actual segment. I have a PR open right now that assesses this problem by using the original config object to track updates to color and values. Take a look at my branch and test it out if you'd like. "}}