Skip to main content

SeriesCompareFn

@elastic/chartsExports


@elastic/charts / SeriesCompareFn

Type alias: SeriesCompareFn

SeriesCompareFn: (siA, siB) => number

A compare function used to determine the order of the elements. It is expected to return a negative value if first argument is less than second argument, zero if they're equal and a positive value otherwise.

Parameters

siA: SeriesIdentifier

siB: SeriesIdentifier

Returns

number

Source

packages/charts/src/utils/series_sort.ts:17


Generated using typedoc-plugin-markdown and TypeDoc