-
-
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
sunburst & treemap root color attribute #5232
Conversation
attribute settings
Please also consider handling the root/trunk color here: plotly.js/src/traces/treemap/style.js Lines 50 to 54 in 5d4c888
should become something like: if(isRoot && fillColor === trace.root.color) {
opacity = 100;
lineColor = 'rgba(0,0,0,0)';
lineWidth = 0;
} else { Thanks. |
Then please add root/trunk color equal to regenerate the new baseline:
then
More info: https://github.com/plotly/plotly.js/blob/master/CONTRIBUTING.md#image-pixel-comparison-tests Also if you had difficulty making these baselines; you could give us (as maintainers) the permission to push to your branch so that I could generate the baselines for you! Thanks. |
I like this new attribute in principle :) |
@thierryVergult we are planning next |
I'm pretty busy these days. Not sure I will find some time this week for further follow up. |
Thanks for the info. |
new attribute for treemap & sunburst traces to set the color of the root node.
Setting the color of the root node of a treemap can also be used to fix the height of a treemap. By default the root node has no color, and when doing a drilldown, the surface of the root nood is overwritten with descendent data. Having a root node color set makes the surface used more prominent visible.
See also #5199