mirror of
https://github.com/nasa/openmct.git
synced 2025-06-19 07:38:15 +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:
@ -161,7 +161,7 @@ define([
|
|||||||
var newPoints = _(this.data)
|
var newPoints = _(this.data)
|
||||||
.concat(points)
|
.concat(points)
|
||||||
.sortBy(this.getXVal)
|
.sortBy(this.getXVal)
|
||||||
.uniq(true, this.getXVal)
|
.uniq(true, point => [this.getXVal(point), this.getYVal(point)].join())
|
||||||
.value();
|
.value();
|
||||||
this.reset(newPoints);
|
this.reset(newPoints);
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
Reference in New Issue
Block a user