Documentation
How do I do it?
- Determine your HighCharts configuration JSON. This will help you with that.
- Wrap your JSON and POST it to /api/graph:
POST https://hcimg.sassiex.com/api/graph?apikey=[your apikey] { "graph": { "graph_json": [your highcharts json here] } }(Why not just have the graph_json be the top element? Because there are other not-yet-documented meta-parameters that could be passed in.)
- If all goes well, you will receive a response with HTTP status 200 or 201; 200 implies cached version of the image was used (because identical graph_json had been used before). The response JSON will contain a data_uri you can stick into an img tag src attribute.
{ "graph": { "id": "ad29e4b2d3a6771e7eab8e4947e9a1ba", "data_uri": "data:image\/png;base64,iVBORw0KGgo..." } }