Field interface

Signature

  1. export interface Field<T = any, V = Vector<T>>

Import

  1. import { Field } from '@grafana/data';

Properties

PropertyTypeDescription
configFieldConfigMeta info about how field and how to display it
displayDisplayProcessorConvert a value for display
getLinks(config: ValueLinkConfig) => Array<LinkModel<Field>>Get value data links with variables interpolated
labelsLabels
namestringName of the field (column)
stateFieldState | nullCached values with appropriate display and id values
typeFieldTypeField value type (string, number, etc)
valuesV

config property

Meta info about how field and how to display it

Signature

  1. config: FieldConfig;

display property

Convert a value for display

Signature

  1. display?: DisplayProcessor;

Get value data links with variables interpolated

Signature

  1. getLinks?: (config: ValueLinkConfig) => Array<LinkModel<Field>>;

labels property

Signature

  1. labels?: Labels;

name property

Name of the field (column)

Signature

  1. name: string;

state property

Cached values with appropriate display and id values

Signature

  1. state?: FieldState | null;

type property

Field value type (string, number, etc)

Signature

  1. type: FieldType;

values property

Signature

  1. values: V;