Uh oh!
There was an error while loading. Please reload this page.
Revise hierarchy referencing and fixup parent percentage at the root node of treemap and sunburst - #4219
Conversation
- simplify sunburst and treemap percentage references - add hovertemplate tests to treemap - fixup sunburst jasmine texttemplate tests
…here after merging the treemap PR
Uh oh!
There was an error while loading. Please reload this page.
| ['%{percentRoot} of %{root}', ['100% of Eve', '33% of Eve', '17% of Eve', '17% of Eve', '17% of Eve', '17% of Eve', '17% of Eve', '17% of Eve', '17% of Eve']], | ||
| ['%{percentEntry} of %{entry}', ['100% of Eve', '33% of Eve', '17% of Eve', '17% of Eve', '17% of Eve', '17% of Eve', '17% of Eve', '17% of Eve', '17% of Eve']], | ||
| ['%{percentParent} of %{parent}', ['%{percentParent} of %{parent}', '100% of Seth', '33% of Eve', '17% of Eve', '17% of Eve', '17% of Eve', '17% of Eve', '50% of Seth', '100% of Awan']], | ||
| ['%{percentParent} of %{parent}', ['100% of Eve', '100% of Seth', '33% of Eve', '17% of Eve', '17% of Eve', '17% of Eve', '17% of Eve', '50% of Seth', '100% of Awan']], |
There was a problem hiding this comment.
Wait. Is this the root node sector? You're saying the parent of the root node is itself?
There was a problem hiding this comment.
I don't get it. After 54360be, looks like %{parent} is now '', but %{percentParent} is still 100% for the root node.
Can we have '%{percentParent} of %{parent}' resolve as '%{percentParent} of %{parent}' for the root node (i.e. the percentParent and parent keys are not defined) like before?
I know this is not ideal, but I don't like filling in '%{percentParent} and %{parent} with wrong values for the root node just to make the template string look better.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
etpinard
commented
Sep 30, 2019
Nicely done 💃 thanks!! |
This PR
sunburstandtreemapplotshovertemplateat different levels@etpinard