Skip to main content

MetricWProgress

@elastic/chartsExports


@elastic/charts / MetricWProgress

Type alias: MetricWProgress

MetricWProgress: MetricWNumber & Object

Type declaration

domainMax

domainMax: number

Maximum value of the Metric progress domain.

domainMin?

domainMin?: number

Optional minimum value of the Metric progress domain. Defaults to 0, preserving the existing zero-based Metric behavior. Set this when Metric should render a signed or custom range.

progressBarDirection

progressBarDirection: LayoutDirection

progressBarFill?

progressBarFill?: MeterFill

Optional Meter fill configuration for the progress bar.

Colors are resolved against the Metric tile background before rendering. Defaults to a single-color fill derived from color.

progressBarSize?

progressBarSize?: MeterSize

Optional Meter thickness preset for the progress bar. Use this when a parent layout, such as Lens table row density, needs to map onto a fixed progress bar thickness. When omitted, the bar size is derived from the Metric tile layout.

progressValueLabels?

progressValueLabels?: MetricProgressValueLabels

Optional labels for explicit-domain value and target text. Defaults to Value and Target. Ignored when domainMin is omitted.

Source

packages/charts/src/chart_types/metric/specs/index.ts:120


Generated using typedoc-plugin-markdown and TypeDoc