API Reference@grafana/dataDisplayValue

DisplayValue interface

Signature

export interface DisplayValue extends FormattedValue 

Import

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

Properties

Property Type Description
color string Color based on mappings or threshold
description string Used in limited scenarios like legend reducer calculations
icon string Icon based on mappings or threshold
numeric number Use isNaN to check if it is a real number
percent number 0-1 between min & max
title string

color property

Color based on mappings or threshold

Signature

color?: string;

description property

Used in limited scenarios like legend reducer calculations

Signature

description?: string;

icon property

Icon based on mappings or threshold

Signature

icon?: string;

numeric property

Use isNaN to check if it is a real number

Signature

numeric: number;

percent property

0-1 between min & max

Signature

percent?: number;

title property

Signature

title?: string;