]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
#11450 hide bar by dataindex (#11755)
authorEricWittrock <92955915+EricWittrock@users.noreply.github.com>
Mon, 29 Apr 2024 04:36:56 +0000 (23:36 -0500)
committerGitHub <noreply@github.com>
Mon, 29 Apr 2024 04:36:56 +0000 (06:36 +0200)
src/controllers/controller.bar.js

index 1221b64c323c411f56d899bbdc5535027e56a9cd..7257bc23992fb0723364b48b6a23dc8fc366ae42 100644 (file)
@@ -647,7 +647,7 @@ export default class BarController extends DatasetController {
     let i = 0;
 
     for (; i < ilen; ++i) {
-      if (this.getParsed(i)[vScale.axis] !== null) {
+      if (this.getParsed(i)[vScale.axis] !== null && !rects[i].hidden) {
         rects[i].draw(this._ctx);
       }
     }