Skip to main content

SeriesAccessors

@elastic/chartsExports


@elastic/charts / SeriesAccessors

Interface: SeriesAccessors<D>

Contents

Type parameters

D extends BaseDatum = any

Properties

markSizeAccessor?

markSizeAccessor?: Accessor<D> | AccessorFn<D>

Field name of mark size metric on Datum

Only used with line/area series

Source

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


splitSeriesAccessors?

splitSeriesAccessors?: (Accessor<D> | AccessorFn<D>)[]

An array of fields thats indicates the datum series membership

Source

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


stackAccessors?

stackAccessors?: (Accessor<any> | AccessorFn<any>)[]

An array of fields thats indicates the stack membership. Does not depend on datum at the moment.

TODO pass datum to accessors when applicable

Source

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


xAccessor

xAccessor: Accessor<D> | AccessorFn<D>

The field name of the x value on Datum object

Source

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


y0Accessors?

y0Accessors?: (Accessor<D> | AccessorFn<D>)[]

An optional accessor of the y0 value: base point for area/bar charts

Source

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


yAccessors

yAccessors: (Accessor<D> | AccessorFn<D>)[]

An array of field names one per y metric value

Source

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


Generated using typedoc-plugin-markdown and TypeDoc