[v10.0.x] Trend: Filter out time fields (#68507)

Trend: Filter out time fields (#68504)

(cherry picked from commit 5a5860256f)

Co-authored-by: Nathan Marrs <nathanielmarrs@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2023-05-16 02:09:15 +03:00
committed by GitHub
co-authored by Nathan Marrs
parent 61c237a25e
commit 2712008ca1
+2 -1
View File
@@ -1,4 +1,4 @@
import { PanelPlugin } from '@grafana/data';
import { Field, FieldType, PanelPlugin } from '@grafana/data';
import { commonOptionsBuilder } from '@grafana/ui';
import { defaultGraphConfig, getGraphFieldConfig } from '../timeseries/config';
@@ -20,6 +20,7 @@ export const plugin = new PanelPlugin<PanelOptions, PanelFieldConfig>(TrendPanel
settings: {
isClearable: true,
placeholderText: 'First numeric value',
filter: (field: Field) => field.type === FieldType.number,
},
});