tylerm
Posts: 9
Joined: Wed Jul 20, 2022 9:07 pm

Disabling breadcrumbs on Sunburst charts

I cannot figure out how to disable breadcrumbs on a sunburst chart. I've tried putting:

Code: Select all

breadcrumbs: {
	enabled: false
}
But that doesn't do anything. How do I disable the breadcrumbs?

Thanks!
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Disabling breadcrumbs on Sunburst charts

Hi there,

Thank you for contacting us!

There is no such option in the API to disable the breadcrumbs (except for disabling the whole drilldown functionality with allowTraversingTree option).
https://api.highcharts.com/highcharts/s ... ersingTree

But, I can suggest you a CSS workaround. Simply set the display: none on both button and separator classes, and it won't show up again.
Take a look at the CSS tab: https://jsfiddle.net/BlackLabel/eoq1tbwz/

Let me know if that's what you wanted to achieve!
Best regards
Kamil Musiałowski
Highcharts Developer
tylerm
Posts: 9
Joined: Wed Jul 20, 2022 9:07 pm

Re: Disabling breadcrumbs on Sunburst charts

Thanks Kamil, that is helpful, but the chart still shrinks when you click on anything in order to make room for the breadcrumb... so while you cannot see it, it still takes up space. You notice is most when you click on the center circle... the whole sunburst will shrink. Any way to prevent that?
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Disabling breadcrumbs on Sunburst charts

Hello,

Sorry about that - I must have missed the resize feature.
Everything stays the same as previously mentioned, just add the following to your chart config and you should be good to go.

Code: Select all

  navigation: {
    breadcrumbs: {
      floating: true
    }
  },
DEMO: https://jsfiddle.net/BlackLabel/3gkrsncb/
API Reference: https://api.highcharts.com/highcharts/n ... s.floating

Let me know your thoughts about it now,
Best regards!
Kamil Musiałowski
Highcharts Developer
tylerm
Posts: 9
Joined: Wed Jul 20, 2022 9:07 pm

Re: Disabling breadcrumbs on Sunburst charts

Perfect, thank you!!
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Disabling breadcrumbs on Sunburst charts

Great to hear that! I'm glad that I could help you.

Do not hesitate to contact us with any other questions,
Best regards!
Kamil Musiałowski
Highcharts Developer

Return to “Highcharts Usage”