diff --git a/lib/core.js b/lib/core.js index 08a2f17..ae5b5eb 100644 --- a/lib/core.js +++ b/lib/core.js @@ -21,7 +21,7 @@ module.exports = { var extras = ['clear', 'stop', 'resize', 'toBase64Image', 'generateLegend', 'update', 'addData', 'removeData']; function extra(type) { classData[type] = function() { - this.state.chart[name].apply(this.state.chart, arguments); + return this.state.chart[type].apply(this.state.chart, arguments); }; }