From a10e245e5ad743686f691d549b2ec3257c7650cb Mon Sep 17 00:00:00 2001 From: Evert Timberg Date: Sat, 23 May 2015 18:15:57 -0400 Subject: [PATCH] Use correct tooltip events in each chart --- src/Chart.Doughnut.js | 2 +- src/Chart.PolarArea.js | 2 +- src/Chart.Radar.js | 2 +- src/Chart.Scatter.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Chart.Doughnut.js b/src/Chart.Doughnut.js index c35306501..b25f48f47 100644 --- a/src/Chart.Doughnut.js +++ b/src/Chart.Doughnut.js @@ -53,7 +53,7 @@ //Set up tooltip events on the chart if (this.options.showTooltips) { - helpers.bindEvents(this, this.options.tooltipEvents, this.onHover); + helpers.bindEvents(this, this.options.events, this.onHover); } // Create new slice for each piece of data diff --git a/src/Chart.PolarArea.js b/src/Chart.PolarArea.js index 4bfec4f46..eb48a9f0f 100644 --- a/src/Chart.PolarArea.js +++ b/src/Chart.PolarArea.js @@ -103,7 +103,7 @@ //Set up tooltip events on the chart if (this.options.showTooltips){ - helpers.bindEvents(this, this.options.tooltipEvents, function(evt){ + helpers.bindEvents(this, this.options.events, function(evt){ var activeSegments = (evt.type !== 'mouseout') ? this.getSegmentsAtEvent(evt) : []; helpers.each(this.segments,function(segment){ segment.restore(["fillColor"]); diff --git a/src/Chart.Radar.js b/src/Chart.Radar.js index ddf12388f..636681adc 100644 --- a/src/Chart.Radar.js +++ b/src/Chart.Radar.js @@ -81,7 +81,7 @@ //Set up tooltip events on the chart if (this.options.showTooltips){ - helpers.bindEvents(this, this.options.tooltipEvents, function(evt){ + helpers.bindEvents(this, this.options.events, function(evt){ var activePointsCollection = (evt.type !== 'mouseout') ? this.getPointsAtEvent(evt) : []; this.eachPoints(function(point){ diff --git a/src/Chart.Scatter.js b/src/Chart.Scatter.js index 5ac3d120e..127b4294e 100644 --- a/src/Chart.Scatter.js +++ b/src/Chart.Scatter.js @@ -114,7 +114,7 @@ }); // Events - helpers.bindEvents(this, this.options.tooltipEvents, this.events); + helpers.bindEvents(this, this.options.events, this.events); // Build Scale this.buildScale();