Bump chartjs-color to version 2.0.0 (#2549)

Fix color animation because the color lib changed the `mix` implementation to match SASS behavior, so the weight specifies the amount of the first color that should be included in the returned color.
This commit is contained in:
Simon Brunel 2016-05-14 19:35:35 +02:00 committed by Evert Timberg
parent 85267f0c62
commit b64e03dbd0
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@
"main": "Chart.js"
},
"dependencies": {
"chartjs-color": "^1.0.2",
"chartjs-color": "^2.0.0",
"moment": "^2.10.6"
}
}

View File

@ -60,7 +60,7 @@ module.exports = function(Chart) {
// Color transitions if possible
else if (typeof value === 'string') {
try {
var color = helpers.color(this._start[key]).mix(helpers.color(this._model[key]), ease);
var color = helpers.color(this._model[key]).mix(helpers.color(this._start[key]), ease);
this._view[key] = color.rgbString();
} catch (err) {
this._view[key] = value;