Open AlbyTree opened 6 years ago
Hello, we also ran into this issue with word trees. Right now, for both implicit and explicit trees, size is ignored for all but leaf nodes. A non leaf's size is a sum of each child node's size only.
Note in the included example that 'cat's size is set to 30 but it is only getting its size from the child 'are' making it 5. The node 'are' should be size 2 but it is getting the sum of the nodes to the right of it.
The chart I want to create in a Javascript file looks something like this:
But the chart result doesn't take in account the
'size'
option I decided(here's an example result).According to the google chart page:
But what I think is happening is that the
'size'
is calculated like the tree is implicit. According to the google chart page:As a matter of fact, in this example it seems it's behaving like an implicit tree. The calculus could be something like this:
'size'
value to the one decided in the code'size'
value to the sum of the'size'
value of its childrenEven the first explicit tree example on the google page behaves like an implicit tree.
Is there something I'm missing, is the google page wrong or is there a bug in explicit tree?