Skip to main content

DisplayValueSpec

@elastic/charts • Exports


@elastic/charts / DisplayValueSpec

Interface: DisplayValueSpec

Contents​

Properties​

isAlternatingValueLabel?​

isAlternatingValueLabel?: boolean

If value labels are shown, skips every other label

Default Value​

false

Source​

packages/charts/src/chart_types/xy_chart/utils/specs.ts:386


overflowConstraints?​

overflowConstraints?: LabelOverflowConstraint[]

An option to hide the value label on certain conditions:

  • barGeometry the label is not rendered if the width/height overflows the associated bar geometry,
  • chartEdges the label is not rendered if it overflows the chart projection area.

Default Value​

['barGeometry', 'chartEdges']

Source​

packages/charts/src/chart_types/xy_chart/utils/specs.ts:397


showValueLabel?​

showValueLabel?: boolean

Show value label in chart element

Default Value​

false

Source​

packages/charts/src/chart_types/xy_chart/utils/specs.ts:381


valueFormatter?​

valueFormatter?: TickFormatter<any>

Function for formatting values; will use axis tickFormatter if none specified

Source​

packages/charts/src/chart_types/xy_chart/utils/specs.ts:390


Generated using typedoc-plugin-markdown and TypeDoc