[Plot] Update plot with historical data

Trigger update of displayed plot data when new historical
data becomes available, WTD-806.
This commit is contained in:
Victor Woeltjen 2015-04-20 17:00:30 -07:00
parent ffc122fb5c
commit 6400a670fa

View File

@ -95,10 +95,17 @@ define(
update();
}
// Display new historical data as it becomes available
function addHistoricalData(domainObject, series) {
updater.addHistorical(domainObject, series);
modeOptions.getModeHandler().plotTelemetry(updater);
update();
}
// Issue a new request for historical telemetry
function requestTelemetry() {
if (handle && updater) {
handle.request({}, updater.addHistorical);
handle.request({}, addHistoricalData);
}
}