Charts in wpDataTables have a very useful feature: if charts are rendered on the same page with a table, they can re-render when the table is filtered using the Advanced Filter.
When is following table filtering useful?
Following table filtering is useful when you want users to visualize only part of the table data, or when the table is too large to chart in full.
This can be helpful if you want to allow users to visualize only some part of a table data: e.g. activity only for a certain product type, or for a certain date range. Also this is useful if the table is quite large, and has the ‘server-side processing‘ feature enabled; since rendering the chart for many thousands of rows would overload both the chart and the page.
What does a chart that follows table filtering look like?
The demo below shows a table and two charts on the same page; filtering, sorting or paging the table redraws both charts.
And see how the chart changes:
Does follow table filtering work with multiple charts on one page?
Yes — follow table filtering also works if multiple charts are on the same page, even when they are rendered by different chart engines.
It also works if multiple charts are on the same page (even rendered by different engines). You can combine it with grouping in charts to sum up rows with the same label.