]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fixed Custom Tooltips
authorTanner Linsley <tannerlinsley@gmail.com>
Wed, 17 Jun 2015 21:10:45 +0000 (15:10 -0600)
committerTanner Linsley <tannerlinsley@gmail.com>
Wed, 17 Jun 2015 21:10:45 +0000 (15:10 -0600)
src/core/core.tooltip.js

index 13e5548bcc08f3629cce8829cc96075e53efcec0..5de6b8bdc4e2d3631e5309b8f3f1536f8a7acf9e 100644 (file)
                                        ctx.fillStyle = helpers.color(vm.backgroundColor).alpha(vm.opacity).rgbString();
 
                                        // Custom Tooltips
-                                       if (this._custom) {
-                                               this._custom(this._view);
+                                       if (this._options.tooltips.custom) {
+                                               this._options.tooltips.custom(this._view);
                                        } else {
                                                switch (vm.yAlign) {
                                                        case "above":