Allow clicking on chart elements to toggle back to the full view

This commit is contained in:
Joseph Schorr 2013-12-02 18:21:15 -05:00
parent 5778f91fbe
commit 37c07c3ac0

View file

@ -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) {