grafana/docs/sources/packages_api/data/fieldconfig.md

147 lines
2.7 KiB
Markdown

+++
# -----------------------------------------------------------------------
# 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
export interface FieldConfig<TOptions extends object = any>
```
<b>Import</b>
```typescript
import { FieldConfig } from '@grafana/data';
```
<b>Properties</b>
| Property | Type | Description |
| --- | --- | --- |
| [color](#color-property) | <code>FieldColor</code> | |
| [custom](#custom-property) | <code>TOptions</code> | |
| [decimals](#decimals-property) | <code>number &#124; null</code> | |
| [displayName](#displayname-property) | <code>string</code> | |
| [filterable](#filterable-property) | <code>boolean</code> | |
| [links](#links-property) | <code>DataLink[]</code> | |
| [mappings](#mappings-property) | <code>ValueMapping[]</code> | |
| [max](#max-property) | <code>number &#124; null</code> | |
| [min](#min-property) | <code>number &#124; 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
custom?: TOptions;
```
### decimals property
<b>Signature</b>
```typescript
decimals?: number | null;
```
### displayName property
<b>Signature</b>
```typescript
displayName?: string;
```
### 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;
```