-
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
dataTable group() means something different #855
Comments
exactly, very confusing indeed... took a while to figure how to use gouping with tables |
I started looking at the data-table code, and one of the things that really bother me is the group-rows being shown even if there is just one group. I used to hide them with CSS. Today I added a getter/setter to control this as a chart parameter, without breaking back-compatibility. Do you think this could be useful? Changes in this commit: https://github.com/emiguevara/dc.js/commit/e7a60c082853c059abbef200e82ef4aa158ae32c |
Yes, @emiguevara, please submit a PR. That is something many people have been working around. Please call it https://github.com/dc-js/dc.js/blob/develop/spec/data-table-spec.js#L54 So I'd just need one verifying that there are no group |
Hi @gordonwoodhull , that is good. I'll give it a go later today, I've never written any tests in JS but it shouldn't be too difficult. Thanks. |
PR submitted. |
At least we have a warning for this API inconsistency in 2.0 beta 16, thanks to @calvino. |
for #855 awful as it is, even worse if it's not documented!
Also documented |
we don't want to deprecate certain functions (yet?) but we can provide a helpful message saying that there is a clearer way to do this for #855
similar to #855 it's still required and has no default new htmlGroup also suggests htmlSection
As of 3.0.12, The old functions are still supported, but they emit a suggestion to use the new functions for clarity. They could be deprecated in the future (but there's really no need). Additionally, the |
This is one of those inconsistencies which to fix would break a lot of code.
But why oh why does
dataTable.group()
take a function returning a grouping key, rather than a group? If it is doing something completely different, it should not use the same name.The text was updated successfully, but these errors were encountered: