mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-14 04:06:49 +01:00
Rename chartInstance to chart
This commit is contained in:
committed by
Evert Timberg
parent
13c6121876
commit
28ea6c4967
@@ -419,12 +419,12 @@ module.exports = function(Chart) {
|
||||
animation.easing = animationOptions.easing;
|
||||
|
||||
// render function
|
||||
animation.render = function(chartInstance, animationObject) {
|
||||
animation.render = function(chart, animationObject) {
|
||||
var easingFunction = helpers.easingEffects[animationObject.easing];
|
||||
var stepDecimal = animationObject.currentStep / animationObject.numSteps;
|
||||
var easeDecimal = easingFunction(stepDecimal);
|
||||
|
||||
chartInstance.draw(easeDecimal, stepDecimal, animationObject.currentStep);
|
||||
chart.draw(easeDecimal, stepDecimal, animationObject.currentStep);
|
||||
};
|
||||
|
||||
// user events
|
||||
@@ -601,7 +601,7 @@ module.exports = function(Chart) {
|
||||
var me = this;
|
||||
me.tooltip = new Chart.Tooltip({
|
||||
_chart: me,
|
||||
_chartInstance: me,
|
||||
_chartInstance: me, // deprecated, backward compatibility
|
||||
_data: me.data,
|
||||
_options: me.options.tooltips
|
||||
}, me);
|
||||
|
||||
Reference in New Issue
Block a user