API Reference@grafana/schemaVizLegendOptions

VizLegendOptions interface

Signature

export interface VizLegendOptions 

Import

import { VizLegendOptions } from '@grafana/schema';

Properties

PropertyTypeDescription
asTableboolean
calcsstring[]
displayModeLegendDisplayMode
isVisibleboolean
placementLegendPlacement
showLegendboolean
sortBystring
sortDescboolean
widthnumber

asTable property

Signature

asTable?: boolean;

calcs property

Signature

calcs: string[];

displayMode property

Signature

displayMode: LegendDisplayMode;

isVisible property

Signature

isVisible?: boolean;

placement property

Signature

placement: LegendPlacement;

showLegend property

Signature

showLegend: boolean;

sortBy property

Signature

sortBy?: string;

sortDesc property

Signature

sortDesc?: boolean;

width property

Signature

width?: number;