Skip to content

defineSeries

Read as Markdown

Import from @pibbl/core/viz. Describes a dataset without acquiring observers or resources.

data accepts a readonly array or signal; x, y, and optional defined describe eligibility without invoking renderers. No subscription or scan occurs when constructing a descriptor or query.

Creates a data descriptor without observing or copying its dataset.

defineSeries: <D>(options: HoverSeries<D>) => HoverSeries<D>

Related API: defineSeries, HoverSeries.

  • options — Data, accessors, and scales describing a hoverable series. See HoverSeries .

The series descriptor with its datum type preserved. See HoverSeries.

HoverSeries

View source — packages/core/src/features/viz/lib/hover-queries.ts:19

Data and coordinate accessors describing one series available to hover queries.

interface HoverSeries<D>

Related API: HoverSeries.

SignalValue

PointAccessor

HoverSeriesMap

ClosestPointHit

ClosestXOptions

View source — packages/core/src/features/viz/lib/hover-types.ts:59

data
readonly data: SignalValue<readonly D[]>

Related API: SignalValue.

Application data supplied to the component or reported by the event. See SignalValue.

View source — packages/core/src/features/viz/lib/hover-types.ts:63

x
readonly x: PointAccessor<D>

Related API: PointAccessor.

Property key or callback extracting the horizontal domain coordinate. See PointAccessor.

View source — packages/core/src/features/viz/lib/hover-types.ts:65

y
readonly y: PointAccessor<D>

Related API: PointAccessor.

Property key or callback extracting the vertical domain coordinate. See PointAccessor.

View source — packages/core/src/features/viz/lib/hover-types.ts:67

defined (optional)
readonly defined?: ((datum: D, index: number, data: readonly D[]) => boolean) | undefined

Returns whether a datum contributes drawable or queryable coordinates. See HoverSeries .

  • datum — Datum to test.

  • index — Zero-based index in the source data.

  • data — Complete source data array.

Whether this datum should participate in the series or query.

View source — packages/core/src/features/viz/lib/hover-types.ts:76

Named series participating in a multi-series hover query.

type HoverSeriesMap = Readonly<Record<string, HoverSeries<any>>>

Related API: HoverSeriesMap, HoverSeries.

HoverSeries

ClosestPointHit

ClosestPointOptions

View source — packages/core/src/features/viz/lib/hover-types.ts:131

Read the Data visualization companion for ownership, adaptation, failure modes, and verification. Agent start provides the version-selection workflow.

Documentation built with @pibbl/core 0.0.2, revision 2dccb19. ALPHA — NOT FOR PRODUCTION USE.