function
Since version 1.7.0
, VChart provides the method registerFunction
to register expression functions globally and on instances.
In principle, registration functions can be applied wherever user-defined callback functions are supported.
Supports function registration mechanism, aiming to solve the problem of inability to serialize scene functions such as mini programs and Feishu cards.
registerFunction
registerFunction
registers a function method. The registered function is available in the chart via the function name.
unregisterFunction
unregisterFunction
unregisters the function method. After logging out the function is not available in the chart.
getFunction
getFunction
This method will get the function based on the function name.
getFunctionList
getFunctionList
This method can obtain a list of all function names.