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.
"main": "Chart.js"
},
"dependencies": {
- "chartjs-color": "^1.0.2",
+ "chartjs-color": "^2.0.0",
"moment": "^2.10.6"
}
}
\ No newline at end of file
// 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;