https://github.com/robiningelbrecht/apache-echarts-action
Render server-side Apache Echarts using GitHub Action workflow
https://github.com/robiningelbrecht/apache-echarts-action
Last synced: about 2 months ago
JSON representation
Render server-side Apache Echarts using GitHub Action workflow
- Host: GitHub
- URL: https://github.com/robiningelbrecht/apache-echarts-action
- Owner: robiningelbrecht
- License: mit
- Created: 2023-07-23T16:14:10.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-24T18:27:31.000Z (almost 3 years ago)
- Last Synced: 2026-03-19T14:15:14.000Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 814 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Apache Echarts action
Render server-side Apache Echarts using GitHub Action workflow
## Inputs
### `width`
**Required** Width of the SVG
### `height`
**Required** Height of the SVG
### `pass-options-as`
**Required** The way you want to pass the options, valid options are
- string
- uri
- file
### `chart-option`
**Required** The chart options, can be one of
* Valid JSON string
* URI to valid JSON
Check https://echarts.apache.org/handbook/en/get-started/ for more info
## Example usage
```yaml
- name: Generate chart
id: chart
uses: robiningelbrecht/apache-echarts-action@v1.1.0
with:
width: 1000
height: 300
pass-options-as: uri
chart-option: 'valid JSON string, URI to valid JSON or reference to file with valid JSON'
- name: Save generated SVG
run: |
cat < chart.svg
${{ steps.chart.outputs.svg }}
EOF
```
For actual examples, check the `test.yml` workflow.