@kanunilabs/pivotgrid-enterprise
@kanunilabs/pivotgrid-enterprise / createChartTransformer
Function: createChartTransformer()
createChartTransformer(
getI18n): (engineResult,fields,expandedPaths,locale,options?) =>ChartTransformResult
A transformer bound to an already-resolved dictionary.
The bridge's transformer signature carries a LOCALE and no dictionary, so
the standalone transformChartData can only resolve the built-in strings —
a customer who overrides grandTotal would see the override in the grid and
the stock word in the chart. The Enterprise panel holds the grid's own
resolved i18n and passes it through here.
Parameters
getI18n
() => ResolvedI18n
Returns
(engineResult, fields, expandedPaths, locale, options?) => ChartTransformResult