Skip to main content

LegendStyle

@elastic/chartsExports


@elastic/charts / LegendStyle

Interface: LegendStyle

Contents

Properties

horizontalHeight

horizontalHeight: number

Max height used for top/bottom legend

Source

packages/charts/src/utils/themes/theme.ts:418


labelOptions

labelOptions: LegendLabelOptions

Options to control legend labels

Source

packages/charts/src/utils/themes/theme.ts:434


margin

margin: number

Legend padding. The Chart margins are independent of the legend.

TODO: make SimplePadding when after axis changes are added

Source

packages/charts/src/utils/themes/theme.ts:430


spacingBuffer

spacingBuffer: number

Added buffer between label and value.

Smaller values render a more compact legend

Source

packages/charts/src/utils/themes/theme.ts:424


verticalWidth

verticalWidth: number

Max width used for left/right legend

or

Width of LegendItem for top/bottom legend

Source

packages/charts/src/utils/themes/theme.ts:414


Generated using typedoc-plugin-markdown and TypeDoc