|
|
@ -2,16 +2,7 @@ import { applyNullInsertThreshold } from './null_insert'; |
|
|
|
|
|
|
|
|
|
|
|
import { find } from 'lodash'; |
|
|
|
import { find } from 'lodash'; |
|
|
|
|
|
|
|
|
|
|
|
import { |
|
|
|
import { DataFrame, dateTime, Field, FieldType, getFieldDisplayName, getTimeField, TimeRange } from '@grafana/data'; |
|
|
|
DataFrame, |
|
|
|
|
|
|
|
dateTime, |
|
|
|
|
|
|
|
Field, |
|
|
|
|
|
|
|
FieldType, |
|
|
|
|
|
|
|
getColorForTheme, |
|
|
|
|
|
|
|
getFieldDisplayName, |
|
|
|
|
|
|
|
getTimeField, |
|
|
|
|
|
|
|
TimeRange, |
|
|
|
|
|
|
|
} from '@grafana/data'; |
|
|
|
|
|
|
|
import { colors } from '@grafana/ui'; |
|
|
|
import { colors } from '@grafana/ui'; |
|
|
|
import config from 'grafana/app/core/config'; |
|
|
|
import config from 'grafana/app/core/config'; |
|
|
|
import TimeSeries from 'grafana/app/core/time_series2'; |
|
|
|
import TimeSeries from 'grafana/app/core/time_series2'; |
|
|
@ -91,7 +82,7 @@ export class DataProcessor { |
|
|
|
const series = new TimeSeries({ |
|
|
|
const series = new TimeSeries({ |
|
|
|
datapoints: datapoints || [], |
|
|
|
datapoints: datapoints || [], |
|
|
|
alias: alias, |
|
|
|
alias: alias, |
|
|
|
color: getColorForTheme(color, config.theme), |
|
|
|
color: config.theme.visualization.getColorByName(color), |
|
|
|
unit: field.config ? field.config.unit : undefined, |
|
|
|
unit: field.config ? field.config.unit : undefined, |
|
|
|
dataFrameIndex, |
|
|
|
dataFrameIndex, |
|
|
|
fieldIndex, |
|
|
|
fieldIndex, |
|
|
|