custom
Previous
Overview
Next
ema
Loading...
Custom data processing logic that allows users to define their own operation methods.
const data = [{ a: 1, b: 2, c: 3 },{ a: 4, b: 5, c: 6 },];chart.data({type: 'inline',value: data,transform: [{type: 'custom',callback: (data) => data.map((d) => ({ ...d, sum: d.a + d.b + d.c })),},],});
Property | Description | Type | Default |
---|---|---|---|
callback | Custom processing function | (data: any[]) => any[] |