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

LegendItem interface

Signature

typescript
export interface LegendItem 

Import

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

Properties

PropertyTypeDescription
colorstring
displayValuesDisplayValue[]
isVisibleboolean
labelstring
yAxisnumber

color property

Signature

typescript
color: string;

displayValues property

Signature

typescript
displayValues?: DisplayValue[];

isVisible property

Signature

typescript
isVisible: boolean;

label property

Signature

typescript
label: string;

yAxis property

Signature

typescript
yAxis: number;