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;
Related Grafana resources
Opening keynote: What's new in Grafana 9?
Raj Dutt, Myrle Krantz, and Torkel Ödegaard unveil what's new in Grafana 9. Watch the opening keynote presentation from GrafanaCONline 2022. On-demand.
Unify your data with Grafana plugins: Splunk, MongoDB, Datadog, and more
Show how Grafana can be used to take data from multiple different sources and unify it, without disrupting the investments that are working today.
Getting started with Grafana Enterprise and observability
Join the Grafana Labs team for a 30-minute demo of how to get started with the Grafana Stack, so you can go from zero to observability in just a few minutes.