Chartjs-Is it possible to get chart js data using ajax?

1👍

You declare chartData twice, the one used inside reposondCanvas is not the one you are writing to in done. Either pass the chartData as a parameter torespondCanvas and remove the global refence (I would recommend this if you do not need to continually update the data) or remove var from your second declaration

Leave a comment