1👍
Forgot to remove/comment the initial ‘var settings’ and in the function call I forgot to add parameters:
createMyChart(data)
Also setting the header in the api call in Dancer is essential!
header ('Content-Type' => 'application/json');
Source:stackexchange.com