I'm currently loading and rendering Highcharts by making a jquery getJSON call to a web service, like so:
$.getJSON('options.json')
.done(function (chartOptions) {
$('#chartholder').highcharts(chartOptions);
});
This all works fine until I have to use an option that requires a javascript callback, such as axis label formatter. When I try it fails with an Uncaught TypeError exception and states the Object has no method 'call'.
I suspect this is as a result of the json, returned by the web service, wrapping the formatter property in quotes so it is valid json, but Highcharts expecting it to be a callback.
Is there a way to return a callback method in the json and for Highcharts to recognise it as such?