Populate Table With JSON data, based on a parsed CSV file in Jquery, JS Populate Table With JSON data, based on a parsed CSV file in Jquery, JS json json

Populate Table With JSON data, based on a parsed CSV file in Jquery, JS


Have you tried placing the data population code on the complete callback of Papa.parse? Like this:

Papa.parse(file, {    header: true,    dynamicTyping: true,    complete: function (results) {        data = results;        localStorage.setItem('dataStuff', JSON.stringify(data));        $('#my-table').dynatable({            dataset: {                records: results            }        });    }});