Skip to content

resolveData

resolveData(data, config, palette?): ResolvedData

Defined in: utils/helpers.ts:290

Schema-agnostic data resolution.

Accepts any array of objects and auto-detects label/value fields, or uses explicit field mapping from the user.

When mapping.colorField is set, each resolved Dataset also gets a parallel colors array. The third arg supplies the active theme palette for hash-fallback when a category has no explicit colorMap entry.

Record<string, any>[] | null | undefined

DataMapping

string[] = []

ResolvedData