Accepted answer

First of all please notice that constr and type are not valid Highcharts options. All options and their structure can be found in the API:

Make sure that all brackets are enclosed properly and options structure is maintained. options is not a Highcharts option. Also you should assign a JSON or an array of JSONs to xAxis property (not an array of Strings).

Change all quotes inside the options string to a single ones. Surround the whole string using double quotes.

This code worked for me:

highcharts-export-server --outfile chart.png --instr "{'title':{'text':'Steep Chart'},'xAxis':{'categories': ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']},'series':[{'data':[1,3,2,4],'type':'line'},{'data':[5,3,4,2],'type':'line'}]}"

Related Query

More Query from same tag