The echarts pie chart in the vue h5 project is shared, and there is a progress bar on ios

The recent demand requires that echarts be shared. In the app, the echarts pie chart is displayed normally, and the display is normal on Android or ios, and there is no problem with the flashing progress bar.
However, when sharing, the progress bar flashed on ios

Solution:
Reduce the width of the canvas a little, because the width of 100% will cause overflow problems, so you can change the width of the canvas to a little smaller
document.getElementById('charts').style.width = '98%'

Guess you like

Origin blog.csdn.net/weixin_45108907/article/details/106792441