https://github.com/doublechaintech/echarts-server-png
An echarts server rendering option into png
https://github.com/doublechaintech/echarts-server-png
Last synced: 22 days ago
JSON representation
An echarts server rendering option into png
- Host: GitHub
- URL: https://github.com/doublechaintech/echarts-server-png
- Owner: doublechaintech
- Created: 2022-10-23T03:46:41.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-31T21:36:56.000Z (over 2 years ago)
- Last Synced: 2025-02-13T01:49:36.110Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 146 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# echarts-server
An echarts server rendering option into png## 直接取得例子的图片
http://localhost:3000/sample
```bash
curl -d @sample-data.json -H "Content-Type: application/json" http://localhost:3000/ -o sample.png
```
sample-data.json是一个文件。位于test目录下## 注册后,取得一个图片
* 注册 curl -d @sample-data.json -H "Content-Type: application/json" http://localhost:3000/reg, 会得到一个uuid,下面步骤使用
* 取回图片 curl http://localhost:3000/image/0699d631-499d-4e90-beee-35ea4f06a781 -o newimage.png## 3D图表的支持
```
yarn add echarts-gl
```
没有window对象,不工作