(cherry picked from commit fa99143eee)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
This commit is contained in:
co-authored by
Leon Sorokin
parent
9d0e4efd9b
commit
659ce4bcad
@@ -12,6 +12,7 @@ import {
|
||||
} from '@grafana/data';
|
||||
import TimeSeries from 'app/core/time_series2';
|
||||
import config from 'app/core/config';
|
||||
import { applyNullInsertThreshold } from '@grafana/ui/src/components/GraphNG/nullInsertThreshold';
|
||||
|
||||
type Options = {
|
||||
dataList: DataFrame[];
|
||||
@@ -30,13 +31,15 @@ export class DataProcessor {
|
||||
}
|
||||
|
||||
for (let i = 0; i < dataList.length; i++) {
|
||||
const series = dataList[i];
|
||||
let series = dataList[i];
|
||||
const { timeField } = getTimeField(series);
|
||||
|
||||
if (!timeField) {
|
||||
continue;
|
||||
}
|
||||
|
||||
series = applyNullInsertThreshold(series, timeField.name);
|
||||
|
||||
for (let j = 0; j < series.fields.length; j++) {
|
||||
const field = series.fields[j];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user