RESTCharts

Generate charts easier than ever! Generated by Highcharts

What is RESTCharts?

RESTCharts lets you generate dynamic Highcharts through a REST-like API, with the URL & query string params providing information such as the data to be charted, chart colors, area opacity, etc.

API

Basic Route Format
The following is an example with curl, but you can use any method of making an HTTP request. Also, CORS is enabled for making requests from the browser.
$ curl -X GET https://api.restcharts.com/chart/:type[?parameter1=val1&parameter2=val2&...]
or
$ curl -X POST https://api.restcharts.com/chart/:type -d '{"parameter1": "val1", "parameter2": "val2", ...}'

Examples

Area

Area Spline

Bar

Column

Line

Spline

Advanced Configuration

The following are examples of using the `raw` parameter to pass a JSON serialized config object to have custom design or configuration for your chart. The following `raw` param has URI-encoded JSON within a GET request, but you can also pass this via a POST request as well. See the docs for more information.
Bubble 1 (with axes)

https://api.restcharts.com/chart/bubble?raw=%7B%22chart%22:%7B%22type%22:%22bubble%22,%22margin%22:null,%22plotBorderWidth%22:1,%22zoomType%22:%22xy%22%7D,%22legend%22:%7B%22enabled%22:false%7D,%22title%22:%7B%22text%22:%22Sugar%20and%20fat%20intake%20per%20country%22%7D,%22xAxis%22:%7B%22visible%22:true,%22gridLineWidth%22:1,%22title%22:%7B%22text%22:%22Daily%20fat%20intake%22%7D,%22labels%22:%7B%22format%22:%22%7Bvalue%7D%20gr%22%7D,%22plotLines%22:%5B%7B%22color%22:%22black%22,%22dashStyle%22:%22dot%22,%22width%22:2,%22value%22:65,%22label%22:%7B%22rotation%22:0,%22y%22:15,%22style%22:%7B%22fontStyle%22:%22italic%22%7D,%22text%22:%22Safe%20fat%20intake%2065g/day%22%7D,%22zIndex%22:3%7D%5D%7D,%22yAxis%22:%7B%22visible%22:true,%22startOnTick%22:false,%22endOnTick%22:false,%22title%22:%7B%22text%22:%22Daily%20sugar%20intake%22%7D,%22labels%22:%7B%22format%22:%22%7Bvalue%7D%20gr%22%7D,%22maxPadding%22:0.2,%22plotLines%22:%5B%7B%22color%22:%22black%22,%22dashStyle%22:%22dot%22,%22width%22:2,%22value%22:50,%22label%22:%7B%22align%22:%22right%22,%22style%22:%7B%22fontStyle%22:%22italic%22%7D,%22text%22:%22Safe%20sugar%20intake%2050g/day%22,%22x%22:-10%7D,%22zIndex%22:3%7D%5D%7D,%22plotOptions%22:%7B%22series%22:%7B%22dataLabels%22:%7B%22enabled%22:true,%22format%22:%22%7Bpoint.name%7D%22%7D%7D%7D,%22series%22:%5B%7B%22data%22:%5B%7B%22x%22:95,%22y%22:95,%22z%22:13.8,%22name%22:%22BE%22,%22country%22:%22Belgium%22%7D,%7B%22x%22:86.5,%22y%22:102.9,%22z%22:14.7,%22name%22:%22DE%22,%22country%22:%22Germany%22%7D,%7B%22x%22:80.8,%22y%22:91.5,%22z%22:15.8,%22name%22:%22FI%22,%22country%22:%22Finland%22%7D,%7B%22x%22:80.4,%22y%22:102.5,%22z%22:12,%22name%22:%22NL%22,%22country%22:%22Netherlands%22%7D,%7B%22x%22:80.3,%22y%22:86.1,%22z%22:11.8,%22name%22:%22SE%22,%22country%22:%22Sweden%22%7D,%7B%22x%22:78.4,%22y%22:70.1,%22z%22:16.6,%22name%22:%22ES%22,%22country%22:%22Spain%22%7D,%7B%22x%22:74.2,%22y%22:68.5,%22z%22:14.5,%22name%22:%22FR%22,%22country%22:%22France%22%7D,%7B%22x%22:73.5,%22y%22:83.1,%22z%22:10,%22name%22:%22NO%22,%22country%22:%22Norway%22%7D,%7B%22x%22:71,%22y%22:93.2,%22z%22:24.7,%22name%22:%22UK%22,%22country%22:%22United%20Kingdom%22%7D,%7B%22x%22:69.2,%22y%22:57.6,%22z%22:10.4,%22name%22:%22IT%22,%22country%22:%22Italy%22%7D,%7B%22x%22:68.6,%22y%22:20,%22z%22:16,%22name%22:%22RU%22,%22country%22:%22Russia%22%7D,%7B%22x%22:65.5,%22y%22:126.4,%22z%22:35.3,%22name%22:%22US%22,%22country%22:%22United%20States%22%7D,%7B%22x%22:65.4,%22y%22:50.8,%22z%22:28.5,%22name%22:%22HU%22,%22country%22:%22Hungary%22%7D,%7B%22x%22:63.4,%22y%22:51.8,%22z%22:15.4,%22name%22:%22PT%22,%22country%22:%22Portugal%22%7D,%7B%22x%22:64,%22y%22:82.9,%22z%22:31.3,%22name%22:%22NZ%22,%22country%22:%22New%20Zealand%22%7D%5D%7D%5D%7D

Bubble 1 (without axes)

https://api.restcharts.com/chart/bubble?raw=%7B%22chart%22:%7B%22type%22:%22bubble%22,%22plotBorderWidth%22:1,%22zoomType%22:%22xy%22%7D,%22legend%22:%7B%22enabled%22:false%7D,%22title%22:%7B%22text%22:%22Sugar%20and%20fat%20intake%20per%20country%22%7D,%22xAxis%22:%7B%22gridLineWidth%22:1,%22title%22:%7B%22text%22:%22Daily%20fat%20intake%22%7D,%22labels%22:%7B%22format%22:%22%7Bvalue%7D%20gr%22%7D,%22plotLines%22:%5B%7B%22color%22:%22black%22,%22dashStyle%22:%22dot%22,%22width%22:2,%22value%22:65,%22label%22:%7B%22rotation%22:0,%22y%22:15,%22style%22:%7B%22fontStyle%22:%22italic%22%7D,%22text%22:%22Safe%20fat%20intake%2065g/day%22%7D,%22zIndex%22:3%7D%5D%7D,%22yAxis%22:%7B%22startOnTick%22:false,%22endOnTick%22:false,%22title%22:%7B%22text%22:%22Daily%20sugar%20intake%22%7D,%22labels%22:%7B%22format%22:%22%7Bvalue%7D%20gr%22%7D,%22maxPadding%22:0.2,%22plotLines%22:%5B%7B%22color%22:%22black%22,%22dashStyle%22:%22dot%22,%22width%22:2,%22value%22:50,%22label%22:%7B%22align%22:%22right%22,%22style%22:%7B%22fontStyle%22:%22italic%22%7D,%22text%22:%22Safe%20sugar%20intake%2050g/day%22,%22x%22:-10%7D,%22zIndex%22:3%7D%5D%7D,%22plotOptions%22:%7B%22series%22:%7B%22dataLabels%22:%7B%22enabled%22:true,%22format%22:%22%7Bpoint.name%7D%22%7D%7D%7D,%22series%22:%5B%7B%22data%22:%5B%7B%22x%22:95,%22y%22:95,%22z%22:13.8,%22name%22:%22BE%22,%22country%22:%22Belgium%22%7D,%7B%22x%22:86.5,%22y%22:102.9,%22z%22:14.7,%22name%22:%22DE%22,%22country%22:%22Germany%22%7D,%7B%22x%22:80.8,%22y%22:91.5,%22z%22:15.8,%22name%22:%22FI%22,%22country%22:%22Finland%22%7D,%7B%22x%22:80.4,%22y%22:102.5,%22z%22:12,%22name%22:%22NL%22,%22country%22:%22Netherlands%22%7D,%7B%22x%22:80.3,%22y%22:86.1,%22z%22:11.8,%22name%22:%22SE%22,%22country%22:%22Sweden%22%7D,%7B%22x%22:78.4,%22y%22:70.1,%22z%22:16.6,%22name%22:%22ES%22,%22country%22:%22Spain%22%7D,%7B%22x%22:74.2,%22y%22:68.5,%22z%22:14.5,%22name%22:%22FR%22,%22country%22:%22France%22%7D,%7B%22x%22:73.5,%22y%22:83.1,%22z%22:10,%22name%22:%22NO%22,%22country%22:%22Norway%22%7D,%7B%22x%22:71,%22y%22:93.2,%22z%22:24.7,%22name%22:%22UK%22,%22country%22:%22United%20Kingdom%22%7D,%7B%22x%22:69.2,%22y%22:57.6,%22z%22:10.4,%22name%22:%22IT%22,%22country%22:%22Italy%22%7D,%7B%22x%22:68.6,%22y%22:20,%22z%22:16,%22name%22:%22RU%22,%22country%22:%22Russia%22%7D,%7B%22x%22:65.5,%22y%22:126.4,%22z%22:35.3,%22name%22:%22US%22,%22country%22:%22United%20States%22%7D,%7B%22x%22:65.4,%22y%22:50.8,%22z%22:28.5,%22name%22:%22HU%22,%22country%22:%22Hungary%22%7D,%7B%22x%22:63.4,%22y%22:51.8,%22z%22:15.4,%22name%22:%22PT%22,%22country%22:%22Portugal%22%7D,%7B%22x%22:64,%22y%22:82.9,%22z%22:31.3,%22name%22:%22NZ%22,%22country%22:%22New%20Zealand%22%7D%5D%7D%5D%7D