Fix doughnut sample (#6690)

This commit is contained in:
Ben McCann 2019-11-05 04:10:01 -08:00 committed by Evert Timberg
parent 72df272234
commit 83d447f317

View File

@ -449,7 +449,7 @@ helpers.extend(Chart.prototype, /** @lends Chart */ {
}, },
/** /**
* Resets the chart back to it's state before the initial animation * Resets the chart back to its state before the initial animation
*/ */
reset: function() { reset: function() {
this.resetElements(); this.resetElements();
@ -460,6 +460,8 @@ helpers.extend(Chart.prototype, /** @lends Chart */ {
var me = this; var me = this;
var i, ilen; var i, ilen;
config = config || {};
updateConfig(me); updateConfig(me);
// plugins options references might have change, let's invalidate the cache // plugins options references might have change, let's invalidate the cache