diff --git a/lib/timeline/component/LineGraph.js b/lib/timeline/component/LineGraph.js index e6345853..7a1d8cc9 100644 --- a/lib/timeline/component/LineGraph.js +++ b/lib/timeline/component/LineGraph.js @@ -478,8 +478,11 @@ LineGraph.prototype._updateAllGroupData = function () { this._onRemoveGroups([groupId]); } } else { - var group = this.groupsData.get(groupId); - if (group === undefined) { + var group = undefined; + if (this.groupsData != undefined) { + group = this.groupsData.get(groupId); + } + if (group == undefined) { group = {id: groupId, content: this.options.defaultGroup + groupId}; } this._updateGroup(group, groupId); diff --git a/lib/timeline/component/graph2d_types/bar.js b/lib/timeline/component/graph2d_types/bar.js index 19b18b3f..23c31c55 100644 --- a/lib/timeline/component/graph2d_types/bar.js +++ b/lib/timeline/component/graph2d_types/bar.js @@ -120,7 +120,7 @@ Bargraph.draw = function (groupIds, processedGroupData, framework) { // draw points if (group.options.drawPoints.enabled === true) { let pointData = { - x:combinedData[i].x + drawData.offset, + x:combinedData[i].x, y:combinedData[i].y - heightOffset, groupId: combinedData[i].groupId, label: combinedData[i].label,