diff --git a/static/js/graphing.js b/static/js/graphing.js index 834b2d363..4ee2ef2f6 100644 --- a/static/js/graphing.js +++ b/static/js/graphing.js @@ -1419,8 +1419,9 @@ LogUsageChart.prototype.handleElementClicked_ = function(e) { var disabled = []; var enabledCount = 0; + var d = this.chart_.multibar.disabled(); for (var i = 0; i < this.data_.length; ++i) { - enabledCount += (this.chart_.multibar.disabled()[i] ? 0 : 1); + enabledCount += (d[i] ? 0 : 1); } for (var i = 0; i < this.data_.length; ++i) {