试了好多方法,都不行,请问有什么好的办法。
用 node + node-canvas,或者用 headless chrome
搜索:PhantomJS
已成功应用PhantomJS在后台生成图文报告
phantomjs: <- no gui
https://github.com/chfw/pyecharts-snapshot/blob/master/pyecharts_snapshot/phantomjs/snapshot.js
chrome puppeteer: <- needs gui
https://github.com/chfw/echarts-scrappeteer
node-echarts(using node-canvas): <- no gui
https://github.com/suxiaoxin/node-echarts/issues/9
如果是echarts+bmap,可以导出图片,但是bmap部分无法导出。求支招
Most helpful comment
phantomjs: <- no gui
https://github.com/chfw/pyecharts-snapshot/blob/master/pyecharts_snapshot/phantomjs/snapshot.js
chrome puppeteer: <- needs gui
https://github.com/chfw/echarts-scrappeteer
node-echarts(using node-canvas): <- no gui
https://github.com/suxiaoxin/node-echarts/issues/9