mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Trend: Filter out time fields (#68504)
This commit is contained in:
parent
516cb30c36
commit
5a5860256f
@ -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,
|
||||
},
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user