Hi,

This is because the Wechat application doesn't support creating a DOM
element. So you need to use rich text of ECharts to render tooltips with
Canvas.
Please follow the document to see more details and examples:
https://github.com/ecomfe/echarts-for-weixin?tab=readme-ov-file#%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8-tooltip

Thanks

*Ovilia*


On Wed, Apr 2, 2025 at 4:14 PM ∮冬冬∮ <544436...@qq.com.invalid> wrote:

>
> 微信小程序使用echarts时,无法使用tooltip.formatter自定义提示框组件样式,官方文档中给出的实例在H5中能很好的呈现,但在微信小程序中只是字符串输出,如下图:
> 代码如下:
>
> 麻烦解答一下,微信小程序中自定义 tooltip.formatter 该如何实现,感谢!
> ------------------------------
> ∮冬冬∮
> 544436...@qq.com
>
> <https://wx.mail.qq.com/home/index?t=readmail_businesscard_midpage&nocheck=true&name=%E2%88%AE%E5%86%AC%E5%86%AC%E2%88%AE&icon=http%3A%2F%2Fthirdqq.qlogo.cn%2Fg%3Fb%3Dsdk%26k%3DVCiacI9tt04Qu4CicKBv0usw%26s%3D100%26t%3D1574326856%3Frand%3D1645521331&mail=544436046%40qq.com&code=>
>
>

Reply via email to