Hello
I have my table set up. I would like to output the table data to draw some charts. So if the user changes filters on the table, the charts will update in a seperate div to reflect these changes.
I have looked at to store the data in a var and output it to a div. But it seems to output the full data set regardless of filter changes.
afterChange: function (r,c) {
var data1 = this.getData();
document.getElementById("output").innerHTML=data1;
console.log(data1)
}
If I understand the method correctly, getData will only output data once a change happens on the table? I need the full data output and any changes thereafter to update the charts. Can I be directed to any similar examples please?
Thanks!