-
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
Integrate with DataTables.js #966
Comments
I have found the following discussions related to this feature request: |
There are also a few examples of common integration patterns: |
This would be great. I don't think it should be part of dc.js proper, because of the extra dependency, but it would make sense to host the project in the dc-js organization if you or someone else works it up. Thanks for the request and the research! |
@gordonwoodhull We would be interested to do this because this is very important feature for our project. How should we get started? Are there any examples or guidelines to follow? Ping: @brylie |
It's really quite easy to integrate external charts with dc.js, but the "chart registry" is undocumented. Take a look at this SO question for some hints which should get you started. http://stackoverflow.com/questions/25336528/dc-js-listening-for-chart-group-render I'll definitely help you get it working if you open source it in return. |
@frenchbread and @JuusoV, lets do some pair programming on this task. |
@brylie and team, did you get anywhere with this? Feel free to email me (address on my user page) if you need any help. |
@gordonwoodhull, we came up with solution to use dynatable.js within dc.js dataset. So basically approach itself is described here by using |
Cool, thanks for the links. Still not a general solution but I'm glad you guys got something working! |
FYI, we integrated it on integritywatch, worked ok, don't recall any specific problem. |
Based on the discussion and links found here, I was able to put together a dc.js-dashboard with a Leaflet.js-map that can be used as a filter, and a DataTables.js-table with expandable row details and a search box that filters all of the component graphs. With the DataTables-table, the dashboard seems to be slightly less responsive than with the regular dc.js-table, but it's not too bad. The repo with the code can be found here, and a demo of the dashboard can be found here. |
@wallinm1 Looks great! Thanks for sharing. |
@wallinm1, great work! I am wondering what would be involved in unifying the DataTable search field/results with the rest of the charts. E.g. when a user filters the DataTable, by using the search field, only the remaining results are displayed in the charts. This would be ideal, as all chart/table components would act as an integrated whole. |
Hi, So the trick I did was to create a new searchbox "graph", so that connection is done automatically, eg: and it works pretty well and fast. The pro side is that you can filter on stuff that aren't in a column, the con side is that you can't select what is the column you are filtering (in theory, you could, it's just a matter of adapting the filter code |
This would be a great addition to dc.js |
I started a new project https://github.com/dc-js/dc.datatables.js It's just the skeleton of the idea, but it mimics the interface of Here's an example, swapping out Please try it out! Feedback and contributions welcome! |
We are trying to implement table search (filtering) and pagination. DataTables.js provides these and other user-friendly table improvements. It would be really useful if the DC DataTable would optionally display using the DataTables.js library.
The text was updated successfully, but these errors were encountered: