Browse Source

fixed bug with empty groups in graph2d

v3_develop
Alex de Mulder 10 years ago
parent
commit
a3f0d4b36d
4 changed files with 23765 additions and 23753 deletions
  1. +23743
    -23737
      dist/vis.js
  2. +1
    -1
      dist/vis.map
  3. +12
    -12
      dist/vis.min.js
  4. +9
    -3
      lib/timeline/component/LineGraph.js

+ 23743
- 23737
dist/vis.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/vis.map
File diff suppressed because it is too large
View File


+ 12
- 12
dist/vis.min.js
File diff suppressed because it is too large
View File


+ 9
- 3
lib/timeline/component/LineGraph.js View File

@ -602,9 +602,15 @@ LineGraph.prototype._updateGraph = function () {
}
}
// preprocess, split into ranges and data
preprocessedGroup = this._preprocessData(groupData, group);
groupRanges.push({min: preprocessedGroup.min, max: preprocessedGroup.max});
preprocessedGroupData.push(preprocessedGroup.data);
if (groupData.length > 0) {
preprocessedGroup = this._preprocessData(groupData, group);
groupRanges.push({min: preprocessedGroup.min, max: preprocessedGroup.max});
preprocessedGroupData.push(preprocessedGroup.data);
}
else {
groupRanges.push({});
preprocessedGroupData.push([]);
}
}
else {
groupRanges.push({});

Loading…
Cancel
Save