Skip to main content

BarSeriesSpec

@elastic/chartsExports


@elastic/charts / BarSeriesSpec

Type alias: BarSeriesSpec<D>

BarSeriesSpec<D>: BasicSeriesSpec<D, "bar"> & Postfixes & Object

This spec describe the dataset configuration used to display a bar series.

Type declaration

barSeriesStyle?

barSeriesStyle?: RecursivePartial<BarSeriesStyle>

enableHistogramMode?

enableHistogramMode?: boolean

If true, will stack all BarSeries and align bars to ticks (instead of centered on ticks)

minBarHeight?

minBarHeight?: number

Min height to render bars for highly variable data

Remarks

i.e. ranges from 100,000 to 1.

The unit is expressed in pixel

seriesType

seriesType: typeof SeriesType.Bar

Default Value

bar (SeriesType:type) | SeriesType.Bar

stackMode?

stackMode?: StackMode

Stack each series using a specific mode: Percentage, Wiggle, Silhouette. The last two modes are generally used for stream graphs

styleAccessor?

styleAccessor?: BarStyleAccessor

Functional accessor to return custom color or style for bar datum

Type parameters

D extends BaseDatum = Datum

Source

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


Generated using typedoc-plugin-markdown and TypeDoc