Chartjs-How to load new chart (chartsjs) from api call with jquery?

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');

Leave a comment