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

Top category color - Possibility to set a default values for all categories #40

Open
engpimo opened this issue Nov 4, 2019 · 3 comments
Assignees

Comments

@engpimo
Copy link

engpimo commented Nov 4, 2019

Hi, I'm using this visual: very nice.

The only strange thing: outer empty/blank circles are colored with the same color or can be specified using "Top category color", but I would like to set them always to a default color or to remove them, see attached image. Is it possible?
Capture

@helen508light
Copy link

The empty/blank circles related to empty/nullable data items.
Now it is standart behavior,but your suggestions really make sense.
We'll add it in our backlog

@minduse
Copy link

minduse commented May 1, 2022

Any update to this one or perhaps a pointer on where to start? This type of visualization is very powerful with org design to identify spans & layers.

@minduse
Copy link

minduse commented May 3, 2022

If anyone is looking for a workaround for this you can do the following:

Around line 590 in Sunburst.ts change it to the following:
if (originParentNode.children && originParentNode.children.length > 0) { for (const child of originParentNode.children) { let nodeColor:string; if (child.value != null) { nodeColor = this.getColor( Sunburst.LegendPropertyIdentifier, newDataPointNode.color, child.objects, name ); } else { nodeColor = "white"; }

To remove the tooltips on elements not displayed, around line 619 change it to this:

if (name.toString() != "") { newDataPointNode.tooltipInfo = this.getTooltipData( formatter, name, newDataPointNode.total ); }

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

No branches or pull requests

4 participants