[Plot] Use new API from PlotUpdater
Use PlotLine and PlotLineBuffer from PlotUpdater, to enable merging of real-time and historical telemetry. WTD-806.
This commit is contained in:
@@ -34,11 +34,11 @@ define(
|
||||
subplot.setDomainOffset(prepared.getDomainOffset());
|
||||
|
||||
// Draw the buffers. Select color by index.
|
||||
subplot.getDrawingObject().lines = prepared.getBuffers().map(function (buf, i) {
|
||||
subplot.getDrawingObject().lines = prepared.getLineBuffers().map(function (buf, i) {
|
||||
return {
|
||||
buffer: buf,
|
||||
buffer: buf.getBuffer(),
|
||||
color: PlotPalette.getFloatColor(i),
|
||||
points: prepared.getLength(i)
|
||||
points: buf.getLength()
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user