Code that ignores duplicate points for plotting is removing non-duplicate points (#2515)

* Code that ignores duplicate points for plotting is removing non-duplicate points

* updated as per suggestion: use generic way of reading Y value.
This commit is contained in:
Nikhil 2019-11-21 08:31:05 -08:00 committed by Andrew Henry
parent c6f83dea8d
commit cab51f2665

View File

@ -161,7 +161,7 @@ define([
var newPoints = _(this.data)
.concat(points)
.sortBy(this.getXVal)
.uniq(true, this.getXVal)
.uniq(true, point => [this.getXVal(point), this.getYVal(point)].join())
.value();
this.reset(newPoints);
}.bind(this));