2020-02-26 17:03:53 +08:00
|
|
|
+++
|
|
|
|
# -----------------------------------------------------------------------
|
|
|
|
# Do not edit this file. It is automatically generated by API Documenter.
|
|
|
|
# -----------------------------------------------------------------------
|
|
|
|
title = "FieldConfig"
|
|
|
|
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
|
|
|
type = "docs"
|
|
|
|
+++
|
|
|
|
|
|
|
|
## FieldConfig interface
|
|
|
|
|
|
|
|
Every property is optional
|
|
|
|
|
|
|
|
Plugins may extend this with additional properties. Something like series overrides
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
2020-04-21 16:41:50 +08:00
|
|
|
export interface FieldConfig<TOptions extends object = any>
|
2020-02-26 17:03:53 +08:00
|
|
|
```
|
|
|
|
<b>Import</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
import { FieldConfig } from '@grafana/data';
|
|
|
|
```
|
|
|
|
<b>Properties</b>
|
|
|
|
|
|
|
|
| Property | Type | Description |
|
|
|
|
| --- | --- | --- |
|
|
|
|
| [color](#color-property) | <code>FieldColor</code> | |
|
2020-04-21 16:41:50 +08:00
|
|
|
| [custom](#custom-property) | <code>TOptions</code> | |
|
2020-02-26 17:03:53 +08:00
|
|
|
| [decimals](#decimals-property) | <code>number | null</code> | |
|
2020-05-15 03:34:59 +08:00
|
|
|
| [displayName](#displayname-property) | <code>string</code> | |
|
2020-02-26 17:03:53 +08:00
|
|
|
| [filterable](#filterable-property) | <code>boolean</code> | |
|
|
|
|
| [links](#links-property) | <code>DataLink[]</code> | |
|
|
|
|
| [mappings](#mappings-property) | <code>ValueMapping[]</code> | |
|
|
|
|
| [max](#max-property) | <code>number | null</code> | |
|
|
|
|
| [min](#min-property) | <code>number | null</code> | |
|
|
|
|
| [noValue](#novalue-property) | <code>string</code> | |
|
|
|
|
| [nullValueMode](#nullvaluemode-property) | <code>NullValueMode</code> | |
|
|
|
|
| [thresholds](#thresholds-property) | <code>ThresholdsConfig</code> | |
|
|
|
|
| [unit](#unit-property) | <code>string</code> | |
|
|
|
|
|
|
|
|
### color property
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
color?: FieldColor;
|
|
|
|
```
|
|
|
|
|
|
|
|
### custom property
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
2020-04-21 16:41:50 +08:00
|
|
|
custom?: TOptions;
|
2020-02-26 17:03:53 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
### decimals property
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
decimals?: number | null;
|
|
|
|
```
|
|
|
|
|
2020-05-15 03:34:59 +08:00
|
|
|
### displayName property
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
displayName?: string;
|
|
|
|
```
|
|
|
|
|
2020-02-26 17:03:53 +08:00
|
|
|
### filterable property
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
filterable?: boolean;
|
|
|
|
```
|
|
|
|
|
|
|
|
### links property
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
links?: DataLink[];
|
|
|
|
```
|
|
|
|
|
|
|
|
### mappings property
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
mappings?: ValueMapping[];
|
|
|
|
```
|
|
|
|
|
|
|
|
### max property
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
max?: number | null;
|
|
|
|
```
|
|
|
|
|
|
|
|
### min property
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
min?: number | null;
|
|
|
|
```
|
|
|
|
|
|
|
|
### noValue property
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
noValue?: string;
|
|
|
|
```
|
|
|
|
|
|
|
|
### nullValueMode property
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
nullValueMode?: NullValueMode;
|
|
|
|
```
|
|
|
|
|
|
|
|
### thresholds property
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
thresholds?: ThresholdsConfig;
|
|
|
|
```
|
|
|
|
|
|
|
|
### unit property
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
unit?: string;
|
|
|
|
```
|