[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:
co-authored by
Nathan Marrs
parent
61c237a25e
commit
2712008ca1
@@ -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,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user