dataset(rows, overrides?) attaches schema metadata to rows. inferSchema(rows) infers that metadata, and resolveData(input) normalizes a rows array or Dataset. See Data model for inference and formats.
useSelection(id?) subscribes to the nearest Selection or a named store. useSourceId(explicit?) creates a stable publisher identity. useLinkedRows(rows, options) filters rows while excluding the current view's own predicates.
PropTypeDefaultDescription
idstring—Name other components can address with useSelection(id). Defaults to a generated id.
onChange(predicates: Predicate[], event: SelectionEvent) => void—Called after every change with the full predicate list and the event that caused it.
childrenReactNode——
PropTypeDefaultDescription
idrequiredstring | null—Store id, or null when there is no enclosing Selection.
matches(row, predicate) evaluates one predicate. applyPredicates(rows, predicates) combines predicates with AND. describePredicate and predicateValueLabel produce labels for filter UI. The selection store adds the publishing source so a view can exclude its own predicate.
PropTypeDefaultDescription
fieldrequiredstring——
sourcestring—The component that published it. A view never filters itself by its own predicates.
labelstring—Optional human label, shown in FilterBar chips and selection logs.
makeFormatter(format, options?) creates a reusable formatter. makeFieldFormatter(field, options?, override?) resolves value, axis or tooltip metadata; formatField(field, value, options?) formats one value. formatDelta(value, kind?, digits?, options?) formats signed changes using locale options. makeRangeFormatter and formatParts support ranges and structured presentation. Read Formatting and notation for precision, units, time zones, exact display limits and optional adapters.
PropTypeDefaultDescription
localestring——
currencystring——
timeZonestring——
shortboolean—Short automatic labels for axes. Explicit format objects retain their precision.
validateSpec(input) returns validity and path-specific errors. validateFormat(input) checks a standalone serializable format, including Intl constructor constraints. SpecView renders a supported JSON spec using the datasets you provide. Read the spec guide for validation and the editor.
PropTypeDefaultDescription
specrequiredunknown—A component spec or a Dashboard, typically JSON from a model. Validated before rendering.
datarequiredRecord<string, DataInput>—Datasets the spec can reference by name.
classNamestring——
styleCSSProperties——
PropTypeDefaultDescription
validrequiredboolean——
errorsrequiredSpecError[]——
PropTypeDefaultDescription
pathrequiredstring—JSON Pointer to the offending value, e.g. "/layout/0/y". Empty for the root.