So, if I take the data from flask then the address changes to
$.getJSON(“http://0.0.0.0:5000/try”, addData);
In try, I take data from a text file which is exactly in the same format. Then I don’t get the output as shown.
That is where the problem is.