Skip to content
Browse files

[html] Don't explode on series that don't exist in all datafiles

  • Loading branch information...
1 parent ff300e6 commit 8cbd05dddda20ef3c592c03da0e7b1109ccbdaf4 @Nephyrin Nephyrin committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 html/slimyet.js
View
2 html/slimyet.js
@@ -984,7 +984,7 @@ Plot.prototype._buildSeries = function(start, stop) {
if (!series[axis]) series[axis] = [];
// Push all non-null datapoints onto list, pushdp() flattens
// this list, finding its midpoint/min/max.
- var val = sourceData['series'][axis][ind];
+ var val = axis in sourceData['series'] ? sourceData['series'][axis][ind] : null;
if (val) series[axis].push(val);
}
}

0 comments on commit 8cbd05d

Please sign in to comment.
Something went wrong with that request. Please try again.