UNPKG

@tanstack/charts

Version:

A chart grammar for TypeScript and JavaScript. Marks consume your data directly, channels describe visual encodings, and the engine compiles them into a renderer-neutral keyed scene. TanStack's compact scales cover common numeric and categorical mappings.

12 lines (11 loc) 365 B
import { createMark } from "./mark.js"; import { initializeCompositeMark } from "./mark-composite-internal.js"; function compositeMark(marks, options = {}) { return createMark(({ markIndex }) => { const id = options.id ?? `composite-${markIndex}`; return initializeCompositeMark(id, marks, { motion: options.motion }); }); } export { compositeMark };