]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Use correct tooltip events in each chart
authorEvert Timberg <evert.timberg@gmail.com>
Sat, 23 May 2015 22:15:57 +0000 (18:15 -0400)
committerEvert Timberg <evert.timberg@gmail.com>
Sat, 23 May 2015 22:15:57 +0000 (18:15 -0400)
src/Chart.Doughnut.js
src/Chart.PolarArea.js
src/Chart.Radar.js
src/Chart.Scatter.js

index c35306501596252a1aab2b8a2be90c3297269d95..b25f48f47b65a9aa1e64fe2efa1afba705e2a6f3 100644 (file)
@@ -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
index 4bfec4f46977091b295b0211e6514d32521cd735..eb48a9f0f191bd744690a465108c35b651fcc46b 100644 (file)
 
                        //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"]);
index ddf12388f92995dbda58313a77de289b8e016791..636681adc4b0f479502f50a37a635f13b2e9997f 100644 (file)
@@ -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){
index 5ac3d120e48317874364e6f2bbdb7337f5b9b278..127b4294e832f52a12d87dd2448768a5a0c306ac 100644 (file)
             });
 
             // Events
-            helpers.bindEvents(this, this.options.tooltipEvents, this.events);
+            helpers.bindEvents(this, this.options.events, this.events);
 
             // Build Scale
             this.buildScale();