-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter data in DataTables and Redraw all charts #420
Comments
@zhx828 You need to set some kind of onClick handler for the table that will filter on the table's dimension and then call dc.redrawAll. |
@jrideout Thank you for your suggestions. I add a 'Refresh Charts' button, and once user clicks it, it will get the current row id into dataTable filter, then do the redrawAll. But question is if I want to add another button 'reset', what should I do to get the original data back except reload current page? |
You can set a filter to |
@jrideout Thank you. All solved. |
@zhx828 could you provide and example on how you achieve this? would be much appreciated. |
Hi,
Is there anyone know how to filter data in DataTables and Redraw all charts? I combined the dataTable in dc.js and the DataTables(http://datatables.net) by adding $("dataTable").dataTable and dc.dataTable("#dataTable") at same time. Right now, it's able to redraw the data table based on the clicks of each charts. But is there anyway to do the reverse?
Peter
The text was updated successfully, but these errors were encountered: