Raw data table changes on data detection


#1

Hello, I have a ChartFactor Raw data table in my react app, and I want to detect changes in the table data when sorting or filtering, so I can update other components accordingly. How can I achieve this?


#2

When the data in Raw Data Table changes a event called rdt:data-updated is fired. You can listen to this event and detect changes in the table data. Here is an example of how to do this:

yourVizInstance.on('rdt:data-updated', (event) => {
    console.log('Data updated:', event);
    // then do whatever you want when data changes...
});