Skip to content
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导致图表白屏不显示 #122

Closed
lxverycool opened this issue Apr 26, 2024 · 3 comments
Closed

formatter导致图表白屏不显示 #122

lxverycool opened this issue Apr 26, 2024 · 3 comments

Comments

@lxverycool
Copy link

lxverycool commented Apr 26, 2024

问题:图表首次渲染时,yAxis的axisLabel如果formatter传入函数,会导致图表不显示,但是第二次手动调用setNewOption方法传入相同的配置,就显示正常。(使用文档中的enableParseStringFunction也无效)
版本:react native版本0.62.2,react-native-echarts-pro版本1.9.1
目前解决办法:传入一个没有formatter的初始配置,finished方法中监听首次渲染完成了再手动将正确配置写进去

@supervons
Copy link
Owner

你好,请按照issues规范提供下详细信息,方便排查。

@kingka
Copy link

kingka commented Jul 8, 2024

+1 , RN升级到0.72.2 后,同样的代码在iOS这段,只要写了formatter 就是显示不出来...把formatter里面的内容删了就行,但是需要linechart显示tooltip自定义样式和点击事件。。。。难搞

@supervons
Copy link
Owner

请更新至1.9.2再尝试。 @lxverycool @kingka

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants