-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Make sunburst and treemap sort optional #5164
Conversation
- Standard (original) behavior: sort on values - new *sort* option to disable sorting
reuse pie.sort in attributes, default true
I will try to figure out why these 3 lines of code resulted in 4 failing checks |
satisfy eslint
Please also add an identical attribute to |
May I ask why the sort attribute should be added to th treemap? Should that resolve some of the failing tests? Or should that make the solution more feature complete? thanks. |
Sure. Actually both. |
Please also note that |
- obey npm lint - add sort option to treemap (define attribute & coerce in default Treepad is using the calc from sunburst, so the 1 line code change for sunburst impacted treemap (sort was not true)
Looking good to me. 💃 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks @thierryVergult! @archmoj go ahead and merge once the tests pass (looks like just a flaky failure, I reran)
see: Disable automatic sorting of the slices in the sunburst #4823