DisplayValue interface

Signature

  1. export interface DisplayValue extends FormattedValue

Import

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

Properties

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

color property

Color based on configs or Threshold

Signature

  1. color?: string;

description property

Used in limited scenarios like legend reducer calculations

Signature

  1. description?: 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;