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 

Import

typescript
import { VizLegendItem } from '@grafana/ui';

Properties

PropertyTypeDescription
colorstring
disabledboolean
fieldIndexDataFrameFieldIndex
getDisplayValues() => DisplayValue[]
labelstring
yAxisnumber

color property

Signature

typescript
color: string;

disabled property

Signature

typescript
disabled?: boolean;

fieldIndex property

Signature

typescript
fieldIndex?: DataFrameFieldIndex;

getDisplayValues property

Signature

typescript
getDisplayValues?: () => DisplayValue[];

label property

Signature

typescript
label: string;

yAxis property

Signature

typescript
yAxis: number;