-
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
using aggregated data in data table #927
Comments
If I am understanding you correctly then you just want to remove the headings? Why not add a postRender event which gets all sub elements with class .dc-table-label and removes them? Also this is more suited for StackOverflow than the issues since it is a question not an issue with the library. Hope that helps. |
@yetanotherion, my understanding of the request is to use a group instead of a dimension for the data for the data table. Because you want reduced values in the cells instead of raw rows. I believe this is already supported, by accident. The coupling between dc and crossfilter is very light, so the data table is just calling See this PR which depends on this: #697 In fact, the data table does not use "groups" like any other dc chart - instead it takes a I delayed in answering because I wanted to create an example and update the documentation, but I don't have time at the moment. Could you please try this out and report if it works? (And if you are very kind, post a simple example.) |
Not helpful to OP but just to create the link, here's an equivalent issue on crossfilter, really a documentation issue here: square/crossfilter#150 |
More notes for myself or other maintainers. The odd group function is documented in a comment in the stock example and nowhere else. https://github.com/dc-js/dc.js/blob/develop/web/stock.js#L453-L458 It could be documented in the way that the special https://github.com/dc-js/dc.js/blob/master/web/docs/api-latest.md#groupgroupall---mandatory |
Thanks ! It works indeed, as soon as:
Where would you like that I write an example that illustrates this ? 2015-04-30 0:15 GMT+02:00 Gordon Woodhull [email protected]:
Ion |
Great! If you can, please create a PR to add the example to web/examples which gets deployed here. |
I'm not sure of the "table-on-aggregated-data", name and my editor added a newline to the index.html (did not manage to remove it for now). |
Thanks! That's fine, the index is generated anyway. |
Documented in #929 |
Hello to all,
Let's take an example of
I'd like to display a "ranking" table that sorts the brands, from the more to the less sold.
Thanks to the group and sortBy functions, I'm currently able to make a table that displays something like
This table is however hard to read for ranking purposes, as all the *_i, *_j should be filtered manually
to have the ranking information.
What would be nice, would be to have:
I currently don't manage to implement that, as the group in table does not
support groups created by means of the dimension.group().reduce(add, del, init) pattern.
Do you have any suggestions on how to do so ?
The text was updated successfully, but these errors were encountered: