Closed yah0130 closed 4 years ago
formatter用function方式不起作用
因为option在data里面uni-app会有个序列化然后反序列化,会把所有函数去掉,所以需要手动设置option。
this.$refs.ecChart.$curChart.setOption(yourOption)
嗯好了
发自我的iPhone
在 2020年1月9日,18:18,Incarnation notifications@github.com 写道:
formatter用function方式不起作用
因为option在data里面uni-app会有个序列化然后反序列化,会把所有函数去掉,所以需要手动设置option。 this.$refs.ecChart.$curChart.setOption(yourOption)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Zhuyi731/echarts-for-wx-uniapp/issues/3?email_source=notifications&email_token=AGAAXPRB3H4TRBA3JKEMQ4LQ432VTA5CNFSM4KEECUZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIPYQ7Y#issuecomment-572491903, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGAAXPUJNSQ7BDASOO6SCM3Q432VTANCNFSM4KEECUZQ.
formatter用function方式不起作用