Browse Source

Fixed #942: bug when data is empty

flowchartTest
jos 9 years ago
parent
commit
eef693113e
2 changed files with 9 additions and 2 deletions
  1. +8
    -1
      HISTORY.md
  2. +1
    -1
      lib/timeline/Core.js

+ 8
- 1
HISTORY.md View File

@ -1,7 +1,14 @@
# vis.js history
http://visjs.org
## not-yet-released, version 4.1.1-SNAPSHOT
## not-yet released, version 4.2.1-SNAPSHOT
### Graph2d
- Fixed #942: bug when data is empty.
## 2015-06-05, version 4.2.0
### General

+ 1
- 1
lib/timeline/Core.js View File

@ -460,7 +460,7 @@ Core.prototype.fit = function(options) {
var range = this.getDataRange();
// skip range set if there is no start and end date
if (range.start === null && range.end === null) {
if (range.min === null && range.max === null) {
return;
}

Loading…
Cancel
Save