mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 13:17:53 +00:00
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:
parent
c6f83dea8d
commit
cab51f2665
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user