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.

15 lines (14 loc) 216 B
function whenFocused(mark, options = {}) { return { ...mark, initialize(context) { return { ...mark.initialize(context), focus: options }; } }; } export { whenFocused };