]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix multi-dataset bar highlighting and bar highlight color logic
authorDavid Cochrum <dcochrum@sonnysdirect.com>
Fri, 11 Mar 2016 17:19:12 +0000 (12:19 -0500)
committerDavid Cochrum <dcochrum@sonnysdirect.com>
Fri, 11 Mar 2016 17:19:12 +0000 (12:19 -0500)
Chart.js

index 21edb16a8b4a7be89bae28dbd48ca552e7c9bf85..7cdf767e314a3596736c2a0f0bdb54017464cb5d 100644 (file)
--- a/Chart.js
+++ b/Chart.js
                                                bar.restore(['fillColor', 'strokeColor']);
                                        });
                                        helpers.each(activeBars, function(activeBar){
-                                               if (activeBar) {
-                                                       activeBar.fillColor = activeBar.highlightFill;
-                                                       activeBar.strokeColor = activeBar.highlightStroke;
-                                               }
+                                               activeBar.fillColor = activeBar.highlightFill;
+                                               activeBar.strokeColor = activeBar.highlightStroke;
                                        });
                                        this.showTooltip(activeBars);
                                });
 
 
 
-}).call(this);
+}).call(this);
\ No newline at end of file