pyecharts+snapshot_selenium的方式只能将图表转为图片,html中的其他元素会被忽略,几番查找后发现imgkit效果还可以(win10和centos7测试OK)
首先需安装imgkit工具:https://wkhtmltopdf.org/downloads.html
下载对应系统的包安装
linux下若有依赖包缺失可在此下载:https://pkgs.org/
pip install imgkit
https://blog.csdn.net/BobYuan888/article/details/108769274
评论区