Skip to content

transform custom 数据格式什么样子的 #6465

Closed Answered by hustcc
vxow asked this question in Q&A
Discussion options

You must be logged in to vote

custom 是通过 function 回调的方式,自行处理逻辑。

{
  type: 'custom',
  callback (data) => data
}

入参 data 是传入 G2 的数据,出参是自行处理,最终会给到下一个 transform 或者 G2 渲染。

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hustcc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants