Skip to main content

SeriesSpec

@elastic/chartsExports


@elastic/charts / SeriesSpec

Interface: SeriesSpec<D>

Contents

Extends

Type parameters

D extends BaseDatum = Datum

Properties

chartType

chartType: "xy_axis"

Chart type define the type of chart that use this spec

Overrides

Spec.chartType

Source

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


color?

color?: SeriesColorAccessor

Set colors for specific series

Source

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


data

data: D[]

An array of data

Source

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


displayValueSettings?

displayValueSettings?: DisplayValueSpec

Source

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


filterSeriesInTooltip?

filterSeriesInTooltip?: FilterPredicate

Hide series in tooltip

Source

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


groupId

groupId: string

The ID of the spec group

Default Value

{@link DEFAULT_GLOBAL_ID}

Source

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


hideInLegend?

hideInLegend?: boolean

If the series should appear in the legend

Default Value

false

Source

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


id

id: string

unique Spec identifier

Inherited from

Spec.id

Source

packages/charts/src/specs/spec_type.ts:29


name?

name?: SeriesNameAccessor

The name of the spec. Also a mechanism to provide custom series names.

Source

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


seriesType

seriesType: SeriesType

The type of series you are looking to render

Source

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


specType

specType: "series"

The type of spec, can be series, axis, annotation, settings etc

Overrides

Spec.specType

Source

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


tickFormat?

tickFormat?: TickFormatter<any>

A function called to format every value label. Uses axis tickFormat when not provided.

Source

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


useDefaultGroupDomain?

useDefaultGroupDomain?: string | boolean

When specify a groupId on this series, this option can be used to compute this series domain as it was part of the default group (when using the boolean value true) or as the series was part of the specified group (when issuing a string)

Source

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


y0AccessorFormat?

y0AccessorFormat?: AccessorFormat

Postfix string or accessor function for y1 accessor when using y0Accessors

Default Value

- upper

Source

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


y1AccessorFormat?

y1AccessorFormat?: AccessorFormat

Postfix string or accessor function for y1 accessor when using y0Accessors

Default Value

- lower

Source

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


Generated using typedoc-plugin-markdown and TypeDoc