DisplayValue interface

Signature

  1. export interface DisplayValue extends FormattedValue

Import

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

Properties

PropertyTypeDescription
colorstringColor based on mappings or threshold
descriptionstringUsed in limited scenarios like legend reducer calculations
iconstringIcon based on mappings or threshold
numericnumberUse isNaN to check if it is a real number
percentnumber0-1 between min & max
titlestring

color property

Color based on mappings or threshold

Signature

  1. color?: string;

description property

Used in limited scenarios like legend reducer calculations

Signature

  1. description?: string;

icon property

Icon based on mappings or threshold

Signature

  1. icon?: string;

numeric property

Use isNaN to check if it is a real number

Signature

  1. numeric: number;

percent property

0-1 between min & max

Signature

  1. percent?: number;

title property

Signature

  1. title?: string;