From 97cc714c94505802b694486e16b57818d8815709 Mon Sep 17 00:00:00 2001 From: etimberg Date: Thu, 31 Dec 2015 19:32:03 -0500 Subject: [PATCH] Don't draw bars that represent data that is not valid (null, undefined, or NaN) --- src/controllers/controller.bar.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/controllers/controller.bar.js b/src/controllers/controller.bar.js index 72e1fb9b7..696b67ad8 100644 --- a/src/controllers/controller.bar.js +++ b/src/controllers/controller.bar.js @@ -285,7 +285,10 @@ draw: function(ease) { var easingDecimal = ease || 1; helpers.each(this.getDataset().metaData, function(rectangle, index) { - rectangle.transition(easingDecimal).draw(); + var d = this.getDataset().data[index]; + if (d !== null && d !== undefined && !isNaN(d)) { + rectangle.transition(easingDecimal).draw(); + } }, this); }, -- 2.47.2