diff --git a/platform/telemetry/src/TelemetryHandle.js b/platform/telemetry/src/TelemetryHandle.js index 7cc802fdee..f28f435249 100644 --- a/platform/telemetry/src/TelemetryHandle.js +++ b/platform/telemetry/src/TelemetryHandle.js @@ -122,9 +122,12 @@ define( */ self.getDatum = function (telemetryObject, index) { function makeNewDatum(series) { - return series ? - subscription.makeDatum(telemetryObject, series, index) : - undefined; + if (series) { + if (series.getDatum) { + return series.getDatum(index); + } + return subscription.makeDatum(telemetryObject, series, index); + } } return typeof index !== 'number' ? diff --git a/src/api/telemetry/LegacyTelemetryProvider.js b/src/api/telemetry/LegacyTelemetryProvider.js index 672fb9c83f..f76fe99d10 100644 --- a/src/api/telemetry/LegacyTelemetryProvider.js +++ b/src/api/telemetry/LegacyTelemetryProvider.js @@ -45,6 +45,9 @@ define([ }; function createDatum(domainObject, metadata, legacySeries, i) { + if (legacySeries.getDatum) { + return legacySeries.getDatum(i); + } var datum = {}; metadata.domains.reduce(function (d, domain) {