Skip to content
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

Wrong placement of multiple levels of categories when categories depths are different #102

Open
stpoa opened this issue Jan 4, 2017 · 1 comment

Comments

@stpoa
Copy link
Contributor

stpoa commented Jan 4, 2017

"Apple" should be next to "Banana" (on the same level)

http://jsfiddle.net/dk44kv7z/

screen shot 2017-01-04 at 16 00 37

@DirkDeWachter
Copy link

DirkDeWachter commented Aug 17, 2017

I added two extra procedures near the top of the axisProto.setupGroups-function:

  1. determine the maximum depth (number of levels) [iterative function getDepth]
  2. add extra (empty) hierarchical array(s) of category-objects/strings to have equal depths for all axis categories [iterative function addEmptyCat]
    This would e.g. change the Fruit subcategory "Banana" into {name: "Banana", categories:[{categories:[""]}]} and likewise for the other categories.

For the result see https://jsfiddle.net/DirkDeWachter/ns2p762z/.
No profiling has been done.
Is this what you expect?
issue102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants