Chartjs-Undefined values in chart.js from json

1👍

You are getting response as a string. you should parse using JSON.parse(data)

success: function(data) {
            console.log(data);
            data = JSON.parse(data)
            //the rest of your code
         }

Leave a comment