Skip to main content

Function: resolveChartContainer()

function resolveChartContainer(
doc: Document | null | undefined,
targetContainer?: string | Element | null
): HTMLElement | null;

Defined in: utils/charts/dom/chartDomUtils.ts:98

Resolve a chart container from an optional target.

Parameters​

doc​

| Document | null | undefined

Document used for fallback lookup.

targetContainer?​

| string | Element | null

Element or ID supplied by callers.

Returns​

| HTMLElement | null

Resolved chart container, if found.