Menu
Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
Enterprise
Open source
VizLegendItem interface
Signature
typescript
export interface VizLegendItem<T = any> Import
typescript
import { VizLegendItem } from '@grafana/ui';Properties
| Property | Type | Description |
|---|---|---|
| color | string | |
| data | T | |
| disabled | boolean | |
| fieldIndex | DataFrameFieldIndex | |
| getDisplayValues | () => DisplayValue[] | |
| getItemKey | () => string | |
| gradient | string | |
| label | string | |
| yAxis | number |
color property
Signature
typescript
color?: string;data property
Signature
typescript
data?: T;disabled property
Signature
typescript
disabled?: boolean;fieldIndex property
Signature
typescript
fieldIndex?: DataFrameFieldIndex;getDisplayValues property
Signature
typescript
getDisplayValues?: () => DisplayValue[];getItemKey property
Signature
typescript
getItemKey?: () => string;gradient property
Signature
typescript
gradient?: string;label property
Signature
typescript
label: string;yAxis property
Signature
typescript
yAxis: number;Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
Scroll for more