FieldConfig interface

Every property is optional

Plugins may extend this with additional properties. Something like series overrides

Signature

  1. export interface FieldConfig<TOptions = any>

Import

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

Properties

PropertyTypeDescription
colorFieldColor
customTOptions
decimalsnumber | null
descriptionstringHuman readable field metadata
displayNamestringThe display value for this field. This supports template variables blank is auto
displayNameFromDSstringThis can be used by data sources that return and explicit naming structure for values and labels When this property is configured, this value is used rather than the default naming strategy.
filterablebooleanTrue if data source field supports ad-hoc filters
intervalnumber | null
linksDataLink[]
mappingsValueMapping[]
maxnumber | null
minnumber | null
noValuestring
nullValueModeNullValueMode
pathstringAn explict path to the field in the datasource. When the frame meta includes a path, This will default to `${frame.meta.path}/${field.name}When defined, this value can be used as an identifier within the datasource scope, and may be used to update the results
thresholdsThresholdsConfig
unitstring
writeablebooleanTrue if data source can write a value to the path. Auth/authz are supported separately

color property

Signature

  1. color?: FieldColor;

custom property

Signature

  1. custom?: TOptions;

decimals property

Signature

  1. decimals?: number | null;

description property

Human readable field metadata

Signature

  1. description?: string;

displayName property

The display value for this field. This supports template variables blank is auto

Signature

  1. displayName?: string;

displayNameFromDS property

This can be used by data sources that return and explicit naming structure for values and labels When this property is configured, this value is used rather than the default naming strategy.

Signature

  1. displayNameFromDS?: string;

filterable property

True if data source field supports ad-hoc filters

Signature

  1. filterable?: boolean;

interval property

Signature

  1. interval?: number | null;

Signature

  1. links?: DataLink[];

mappings property

Signature

  1. mappings?: ValueMapping[];

max property

Signature

  1. max?: number | null;

min property

Signature

  1. min?: number | null;

noValue property

Signature

  1. noValue?: string;

nullValueMode property

Signature

  1. nullValueMode?: NullValueMode;

path property

An explict path to the field in the datasource. When the frame meta includes a path, This will default to `${frame.meta.path}/${field.name}

When defined, this value can be used as an identifier within the datasource scope, and may be used to update the results

Signature

  1. path?: string;

thresholds property

Signature

  1. thresholds?: ThresholdsConfig;

unit property

Signature

  1. unit?: string;

writeable property

True if data source can write a value to the path. Auth/authz are supported separately

Signature

  1. writeable?: boolean;