Skip to main content

GroupBySpec

@elastic/chartsExports


@elastic/charts / GroupBySpec

Interface: GroupBySpec<D>

Contents

Extends

Type parameters

D extends BaseDatum = any

Properties

by

by: GroupByAccessor<D>

Function to return a unique value by which to group the data

Source

packages/charts/src/specs/group_by.ts:34


chartType

chartType: ChartType

Chart type define the type of chart that use this spec

Inherited from

Spec.chartType

Source

packages/charts/src/specs/index.ts:16


format?

format?: GroupByFormatter<D>

Formatter used on all by values.

Only for displayed values, not used in sorting or other internal computations.

Source

packages/charts/src/specs/group_by.ts:44


id

id: string

unique Spec identifier

Inherited from

Spec.id

Source

packages/charts/src/specs/index.ts:14


sort

sort: Predicate

Sort predicate used to sort grouped data

Source

packages/charts/src/specs/group_by.ts:38


specType

specType: string

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

Inherited from

Spec.specType

Source

packages/charts/src/specs/index.ts:18


Generated using typedoc-plugin-markdown and TypeDoc