blob: e4e22396a961c6285a008180fda79d789296342b [file] [log] [blame]
(window.webpackJsonp=window.webpackJsonp||[]).push([[81],{375:function(t,h,e){"use strict";e.r(h),h.default="# ECharts 服务端渲染\n\nECharts 可以在服务端进行渲染。例如[官方示例](${mainSitePath}/examples)里的一个个小截图,就是在服务端预生成出来的。\n\n服务端渲染可以使用流行的 headless 环境,例如 [puppeteer](https://github.com/GoogleChrome/puppeteer)、[headless chrome](https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md)、[node-canvas](https://github.com/Automattic/node-canvas)、[jsdom](https://github.com/jsdom/jsdom)、[PhantomJS](http://phantomjs.org/) 等。\n\n这是一些社区贡献的 ECharts 服务端渲染方案:\n\n- [https://github.com/hellosean1025/node-echarts](https://github.com/hellosean1025/node-echarts)\n- [https://github.com/chfw/echarts-scrappeteer](https://github.com/chfw/echarts-scrappeteer)\n- [https://github.com/chfw/pyecharts-snapshot/blob/master/pyecharts_snapshot/phantomjs/snapshot.js](https://github.com/chfw/pyecharts-snapshot/blob/master/pyecharts_snapshot/phantomjs/snapshot.js)\n- [https://gist.github.com/pissang/4c32ee30e35c91336af72b129a1a4a73](https://gist.github.com/pissang/4c32ee30e35c91336af72b129a1a4a73)\n"}}]);