From b2a589933639f94ae81ea8a746c622d32184f394 Mon Sep 17 00:00:00 2001 From: jos Date: Tue, 9 Dec 2014 14:24:27 +0100 Subject: [PATCH] Fixed broken barCharts with handleOverlap=='stack' --- lib/timeline/component/LineGraph.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/timeline/component/LineGraph.js b/lib/timeline/component/LineGraph.js index 892c8171..d10bb17d 100644 --- a/lib/timeline/component/LineGraph.js +++ b/lib/timeline/component/LineGraph.js @@ -820,7 +820,8 @@ LineGraph.prototype._updateYAxis = function (groupIds, groupRanges) { if (groupIds.length > 0) { // this is here to make sure that if there are no items in the axis but there are groups, that there is no infinite draw/redraw loop. for (var i = 0; i < groupIds.length; i++) { - if (this.groups[groupIds[i]].options.yAxisOrientation == 'left') { + var group = this.groups[groupIds[i]]; + if (group && group.options.yAxisOrientation == 'left') { yAxisLeftUsed = true; minLeft = 0; maxLeft = 0;