highcharts server with chinese font 'Source Han Sans'
391
repo here: https://github.com/nexushubs/highcharts-export-docker, forked from https://github.com/ONSdigital/highcharts-export-docker
docker build -t nexushubs/highcharts-export-docker .
docker run -d --name highcharts -p 8889:8080 nexushubs/highcharts-export-docker
The above command will expose the service on port 8889. This can be changed if required.
## Test
Once the server is running here is an example curl command to render a chart:
curl -H "Content-Type: application/json" -X POST -d '{"infile":{"title": {"text": "Steep Chart"}, "xAxis": {"categories": ["Jan", "Feb", "Mar"]}, "series": [{"data": [29.9, 71.5, 106.4]}]}}' 127.0.0.1:8889 -o testchart.png
Content type
Image
Digest
Size
311.5 MB
Last updated
over 6 years ago
docker pull nexushubs/highcharts-export-docker