Interface AnalyticsPresentationAdapterExperimental

A chart / analytics presentation adapter.

Implementations live outside SDK core (a subpath module, an app, or a third-party package) and are registered with the host. mount may be asynchronous so an adapter can dynamically import an optional peer.

interface AnalyticsPresentationAdapter {
    channels: readonly AnalyticsInteractionChannel[];
    contractVersion: string;
    id: string;
    kinds: readonly AnalyticsArtifactKind[];
    library?: string;
    requiresDom?: boolean;
    describeSupport(artifact: AnalyticsArtifact): AnalyticsSupportDecision;
    mount(request: AnalyticsMountRequest): AnalyticsPresentationHandle | Promise<AnalyticsPresentationHandle>;
}

Properties

channels: readonly AnalyticsInteractionChannel[]
contractVersion: string

Contract version the adapter was written against.

id: string
kinds: readonly AnalyticsArtifactKind[]
library?: string

Human-readable name of the underlying library, when there is one.

requiresDom?: boolean

True when the adapter renders into a DOM/canvas target and therefore needs a browser environment. Headless adapters (accessible table, tests) report false.

Methods