dc-js / dc.datatables.js

integration of datatables.js with dc.js
Other
12 stars 10 forks source link

Currently unused _group functionality #6

Open jackcrymble opened 5 years ago

jackcrymble commented 5 years ago

What is the reason _group functionality has been disabled for dc.datatables?

In the dc.datatables.js file I can see you have stated this is for compatibility reasons. However, on a project I am currently working on this functionality would be really useful.

Thanks

gordonwoodhull commented 5 years ago

Hi @jackcrymble. Are you looking for the group function as implemented by dc.dataTable, which creates sections of the table by nesting them?

http://dc-js.github.io/dc.js/docs/html/dc.dataTable.html

Or do you want to supply aggregated data from a crossfilter group to the table?

If the latter, I think you should be able to pass a crossfilter group as the dimension parameter, just as you can with dc.dataTable.

If the former, I have not seen a nesting feature for datatables.js so I am not sure if that is possible.

gordonwoodhull commented 5 years ago

Maybe we could support the RowGroup extension for datatables. One difference would be that this extension expects a field name, so it would not be compatible with dc.dataTable.group, which takes a function.