Sunburst diagrams are a kind of tree diagram, in which each layer is represented as a ring around a center, and nodes are represented as arcs within such layers. They are typically used to visualize hierarchical data.
Questions tagged [sunburst-diagram]
336 questions
50
votes
9 answers
How to make a sunburst plot in R or Python?
So far I have been unable to find an R library that can create a sunburst plot like those by John Stasko. Anyone knows how to accomplish that in R or Python?

dmvianna
- 15,088
- 18
- 77
- 106
31
votes
12 answers
d3 is not defined - ReferenceError
I am trying to use a "fancy graph" found at http://bl.ocks.org/kerryrodden/7090426:
The way I've done it was to download the code and simply edit the CSV file to match my data. Then I simply open the .html-file in Firefox to see the interactive…

pir
- 5,513
- 12
- 63
- 101
13
votes
3 answers
Dynamically update D3 Sunburst if the source json is updated (item added or deleted)
I am new to D3 and trying to dynamically update the chart if the source json is modified. But I am not able to achieve this.
Please check this plunkr
Js:
var width = 500,
height = 500,
radius = Math.min(width, height) / 2;
var x =…

Saurabh Palatkar
- 3,242
- 9
- 48
- 107
11
votes
1 answer
D3 "Sunburst" Center Path Size
So I've got a pretty standard D3 "Sunburst" diagram. However, the center path (i.e. the root), is too big. It's taking up a large portion of my diagram that is being wasted as the more important arcs around it struggle for space.
I'm about to add…

Cheyne
- 1,964
- 4
- 27
- 43
10
votes
2 answers
How to format data for plotly sunburst diagram
I'm trying to make an sunburst diagram using Plotly via R. I'm struggling with the data model required for the hierarchy, both in terms of conceptualizing how it works, and seeing if there are any easy ways to transform a regular dataframe, with…

mtreg
- 195
- 3
- 11
9
votes
1 answer
D3.js -- loading and manipulating external data
I'm new to D3.js and am playing around with a variety of tutorials/exercises/etc, but my basic need for D3 is to load external data (usually JSON) and draw some interactive charts based on that data.
The basic sunburst example is here:
I…

tchaymore
- 3,728
- 13
- 55
- 86
7
votes
1 answer
Plotly Sunburst chart with percentages
I would like to create a Sunburst chart, corresponding to the following:
Where:
B is 70% of A
C is 20% of B
D is 50% of B
I looked at the plotly documentation but the examples provided only used either use a dataset or a values argument which I…

Eccsx
- 185
- 2
- 13
7
votes
0 answers
Sunburst Diagram Intelligent Text Wrapping
I have a zoomable sunburst diagram based on the great d3 "coffee wheel" example:
In that example there is simple text wrapping code that searches for a space in a label and wraps the text at the first space character:
var textEnter =…

user2689682
- 79
- 3
6
votes
0 answers
show labels of a sunburst chart outside of the circle
I'm trying to draw a sunburst chart, but some items are too small to be visible.
ex : this code...
fig =go.Figure(go.Sunburst(
labels=[ "Eve", "Cain", "Seth", "Enos", "Noam", "Abel", "Awan", "Enoch", "Azura"],
parents=["", "Eve", …

Vianney Morain
- 93
- 7
6
votes
1 answer
How to correctly use 'percentParent' in sunburst graphs with only 1 central node?
So I'm trying to build a Plotly sunburst graph that displays percentParent for each element in the graph. This works fine for all elements except for when I have only a single option for the central node/ring/whatever (see example below)
Since the…

magnawhale
- 257
- 3
- 11
6
votes
2 answers
PieDonut does not display some pie labels
I've used the following data to plot the circular plot from the picture below and I can't display the labels of the narrowest sections. Any clue why?. I've tried reducing the size of the label and doesn't work.
data
level1 level2 …

Vicky Ruiz
- 113
- 1
- 7
6
votes
1 answer
Improving D3 Sequence Sunburst Example
This D3 example served as my starting point:
http://bl.ocks.org/kerryrodden/7090426
I wanted to change data that feeds the diagram, and I made following new example:
http://jsfiddle.net/ZGVK3/
One can notice at least two problems:
Legend is…

VividD
- 10,456
- 6
- 64
- 111
6
votes
1 answer
d3 - sunburst - transition given updated data -- trying to animate, not snap
I am working on a sunburst viz based off of Mike Bostock's Zoomable Sunburst example.
I want to be able to change the underlying data using a whole new JSON (which has the same structure but different 'size' values), and have the sunburst animate a…

Stu Blair
- 1,323
- 15
- 24
5
votes
1 answer
Plotly: Hide `null` from hoverlabels
I have a list called my_customdata which has some nan values. When I plot a sunburst chart and pass my list to customdata, it displays the values as desired. But for the nan values, it instead shows 0 (if I pass si prefix settings along with…

callmeanythingyouwant
- 1,789
- 4
- 15
- 40
5
votes
1 answer
Is there a way to vary the thickness of a layer in sunburst diagram in plotly
I want to change the thickness of a layer in a sunburst diagram. I have looked through all the examples on https://plotly.com/python/sunburst-charts/ but can't find any good solution.
Take the example below (from the link above)
import…

Timo
- 103
- 5