forked from grafana.jool/grafana-jool
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
296 B
9 lines
296 B
import { FieldDisplay } from '@grafana/data';
|
|
|
|
export function filterDisplayItems(item: FieldDisplay) {
|
|
return !item.field.custom?.hideFrom?.viz && !isNaN(item.display.numeric);
|
|
}
|
|
|
|
export function sumDisplayItemsReducer(acc: number, item: FieldDisplay) {
|
|
return item.display.numeric + acc;
|
|
}
|
|
|