-
Notifications
You must be signed in to change notification settings - Fork 13
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
GroupBy spliting between groupings #240
Comments
Apologies for me belated reply. I am currently out of the office but will get back to you next Tuesday. If I forget please add a comment or ping me. |
What you describe is the expected behavior. The groupBy call acts on the current rather than the initial pile state. In your scenario this is what happens:
What you want to achieve is essentially what you're doing. Instead of grouping the 14 piles you want to group the original piles (that consisted of only one item per pile). So in that case you first need to split all the tiles and then have to repile them. I assume you're building your own kind of visual piling interface. In that case I would create a new UI element which combines the Does this help? |
Thank you for your answer! |
I am reopening the issue because I think your requested behavior should be available. For now, you could create another callback function that looks as follows async function groupByCategory(category) {
await piling.splitAll();
piling.groupBy('category', category);
} In the future, I imagine the piling.groupBy('category', 'month', { splitBeforeGrouping: true }); Internally, when |
Hello,
I am trying to change the groupings of Scatterplots, but it is always necessary to use spiltAll() in between the groupings to get the result I would expect. Is this intended or a bug?
Observed behavior
Similarly also in the Global Surface Temperature Ridge Plots (SVG)
the following use case can be found:
Steps to reproduce
(if we keep repeating steps 2 and 3 no changes occur anymore)
This leads to a different outcome than if we do the following.
A video of the behaviour in the mentioned example:
2021-06-02.11-27-48.mp4
Similar problem in our Project where we change the cluster numbers but only the correct clusters are shown after pressing a button to perform a
SplitAll()
2021-06-02.11-23-44.mp4
Thank you for any help or comments :)
The text was updated successfully, but these errors were encountered: