2020-02-26 03:03:53 -06:00
|
|
|
+++
|
|
|
|
# -----------------------------------------------------------------------
|
|
|
|
# Do not edit this file. It is automatically generated by API Documenter.
|
|
|
|
# -----------------------------------------------------------------------
|
|
|
|
title = "DisplayValue"
|
|
|
|
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
|
|
|
type = "docs"
|
|
|
|
+++
|
|
|
|
|
|
|
|
## DisplayValue interface
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
export interface DisplayValue extends FormattedValue
|
|
|
|
```
|
|
|
|
<b>Import</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
import { DisplayValue } from '@grafana/data';
|
|
|
|
```
|
|
|
|
<b>Properties</b>
|
|
|
|
|
|
|
|
| Property | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2020-04-21 03:41:50 -05:00
|
|
|
| [color](#color-property) | <code>string</code> | Color based on configs or Threshold |
|
|
|
|
| [numeric](#numeric-property) | <code>number</code> | Use isNaN to check if it is a real number |
|
|
|
|
| [percent](#percent-property) | <code>number</code> | 0-1 between min & max |
|
2020-02-26 03:03:53 -06:00
|
|
|
| [title](#title-property) | <code>string</code> | |
|
|
|
|
|
|
|
|
### color property
|
|
|
|
|
2020-04-21 03:41:50 -05:00
|
|
|
Color based on configs or Threshold
|
|
|
|
|
2020-02-26 03:03:53 -06:00
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
color?: string;
|
|
|
|
```
|
|
|
|
|
|
|
|
### numeric property
|
|
|
|
|
2020-04-21 03:41:50 -05:00
|
|
|
Use isNaN to check if it is a real number
|
|
|
|
|
2020-02-26 03:03:53 -06:00
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
numeric: number;
|
|
|
|
```
|
|
|
|
|
|
|
|
### percent property
|
|
|
|
|
2020-04-21 03:41:50 -05:00
|
|
|
0-1 between min & max
|
|
|
|
|
2020-02-26 03:03:53 -06:00
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
percent?: number;
|
|
|
|
```
|
|
|
|
|
|
|
|
### title property
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
title?: string;
|
|
|
|
```
|