-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
formatter 自定义显示无法访问外部变量 #175
Comments
你好:请问你这个问题解决吗? |
你好:请问你这个问题解决吗? |
Hi @memorybx @puxiaoshuai, you can try this way: First in the place of using echarts:
Second, modify the source code of echarts to transfer customData:
Last, use the data in formatter function:
|
Thank you very much! Your question completed very perfect! |
我这样做ios打包之后图表不显示 |
tooltip: {
trigger: 'item',
formatter: function(params,data) {
return data;
}
},
直接返回 item_xxxx_0
tooltip: {
trigger: 'item',
formatter: function(params) {
return this.state.data;
}
},
直接报错说 this.state.data没被定义。
formatter方法中无法执行console.log()
The text was updated successfully, but these errors were encountered: