Documentation Index
Fetch the complete documentation index at: https://mintlify.com/TargetProcess/tauCharts/llms.txt
Use this file to discover all available pages before exploring further.
PluginsSDK provides utilities for plugin authors to interact with the internal chart specification tree, traverse units, and extract formatted field information. It is accessible at Taucharts.api.pluginsSDK.
Static methods
Unit and spec wrappers
Wrap a raw unit reference in a helper object for easier manipulation.
Wrap a raw spec reference in a helper object for easier manipulation.
Object utilities
Deep clone an object using JSON serialization.This is a fast, dependency-free deep clone. It does not handle non-serializable values such as
Date instances, functions, or undefined properties.Spec tree traversal
Search the spec unit tree depth-first, returning the first node that satisfies Traverses
predicate.node.frames[].units and node.units recursively.Visit every node in the spec tree, calling Traversal starts at
iterator on each node and its parent.spec.unit. The root node receives null as its parent.Find the direct parent unit of a given unit within the spec tree, matched by Returns
uid.null if the unit is the root or is not found.Field format extraction
Inspect the compiled spec and return a Walks all
DimMap — one DimInfo entry per data field used in the chart.COORDS.RECT nodes and extracts x, y, color, size, and label scale information, resolving format names and null aliases.Merge a caller-supplied formatter map with auto-detected field format info from the spec.Caller-supplied formatters override auto-detected ones. Each
Formatter entry can be:- A function
(x: any) => string - A string (registered format name)
- An object
{ label?: string; format: (x: any) => string; nullAlias?: string }
Token registry
Return a simple key/value token registry scoped to the call site.If a key has not been registered,
get returns the key itself as a fallback.The DimInfo interface
extractFieldsFormatInfo returns a map of field names to DimInfo objects:
Human-readable display label for the dimension. Derived from the axis guide label, or falls back to the field name.
Formatter function for the dimension’s values. Handles null/undefined using
nullAlias.Text shown when a value is
null or undefined. Defaults to "No <label>".For complex object fields: the property name on the object that holds the tick label value.
true when the field references a nested object property via tickLabel.For complex sub-fields: the name of the parent field in the
DimMap.Usage example
The pattern below is the standard way to read formatted field values inside a plugin:Using getFieldFormatters with the tooltip plugin
extractFieldsFormatInfo and getFieldFormatters operate on the compiled GPL spec available in the specready event, not on the original ChartSpec passed to the constructor.