Questions tagged [sunburst-diagram]

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.

336 questions
5
votes
3 answers

Plotly: Change order of elements in Sunburst Chart

I am currently using plotly express to create a Sunburst Chart. However, i realized that children are ordered alphabetical for nominal values. Especially for plotting months that is pretty unlucky... Do you know how to handle that issue? Maybe a…
5
votes
4 answers

Multiple, dependent-level sunburst/doughnut chart using ggplot2

I'm trying to create a two-level sunburst/doughnut diagram (for print) where the second level is a detailed view of the first. I've read and understood this tutorial, but I'm an R and ggplot2 newbie and am having trouble producing the second level.…
Xophmeister
  • 8,884
  • 4
  • 44
  • 87
5
votes
1 answer

Data for sunburst charts with d3.hierarchy using D3js v4

I am trying to get a sunburst chart using d3.hierarchy with d3js v4 . I did the same as an example here. But since the data I was getting as an array of objects and not the same as used in the example I did add a small function so that the data…
SNT
  • 1,283
  • 3
  • 32
  • 78
5
votes
1 answer

Understanding sunburstR behaviour

I have a data.frame that looks similar to this example: > head(dd) # paths counts #1 s 4735 #2 dt 4635 #3 so 2191 #4 sb 1949 #5 dt-dt 1310 #6 s-s 978 where different steps in a path are separated by -. As you can see,…
talat
  • 68,970
  • 21
  • 126
  • 157
5
votes
3 answers

D3.js Sequence Sunburst, change data on click

I'm trying to change the data of the Sequence Sunburst found here: http://bl.ocks.org/kerryrodden/7090426 I want it to change to a new dataset (csv, or json) when I click a button. I tried reading a new csv, and calling…
5
votes
2 answers

Sunburst partition data overwritten by second sunburst on same page

Posting both question & answer here to save somebody else the same trouble later... When I create two sunburst charts using d3.layout.partition, the first sunburst's slice proportions are overwritten by the second sunburst's slice proportions upon…
explunit
  • 18,967
  • 6
  • 69
  • 94
5
votes
0 answers

Hide label if not enough space D3 Zoomable Sunburst chart

So I know this answer is here to hide text that will not fit in the chart: D3 put arc labels in a Pie Chart if there is enough space But I can't figure out how to introduce this into the code below. I've edited this code to make it so you only see…
user1952811
  • 2,398
  • 6
  • 29
  • 49
5
votes
2 answers

How do I hide the text labels in d3 when the nodes are too small?

I am creating a zoomable sunburst similar to this example. The problem is that I've got a lot of data in my sunburst, so the text labels are mushed together and hardly readable. Therefore I would like to hide the labels when they are too small, like…
Perry
  • 1,709
  • 1
  • 17
  • 25
4
votes
1 answer

D3.js: real-time sunburst Partition data: recreate Hierarchy?

First off: I love D3. It's amazing. And makes me wish I knew JS better. Hope someone out there can help me! I've been working on a multi-variable, zoomable, sunburst+icicle diagram. For reference, I've been inspired by the…
Aaron
  • 551
  • 2
  • 10
4
votes
1 answer

How to wrap text in plotly.py's sunburst diagram?

I want to wrap text, as in if it is a long sentence, add line breaks so the font has bigger size, for example, like here I have the following data that can be downloaded from https://gofile.io/d/8djNCU: Here is my code: import plotly.express as…
Gabriele
  • 737
  • 2
  • 8
  • 20
4
votes
3 answers

How to make a sunburst plot from a list of strings in Python?

I have a list of strings: How many glasses are on the tab ? What does the sign say ? Has the pizza been baked ? Do you think the boy on the ground has broken legs ? Is this man crying ? How many pickles are on the plate ? What is the shape of the…
Franck Dernoncourt
  • 77,520
  • 72
  • 342
  • 501
4
votes
0 answers

D3 v4 sunburst zoom and update underlying data on click

this is my first question in stackoverflow and I hope that you can help me with this problem for which I haven't found a solution yet. I want to use D3 v4 and the sunburst visualization in a web application to display and navigate on some data given…
Necrolyte
  • 41
  • 3
4
votes
0 answers

Updating D3.js Zoomable Sunburst levels/children

I'm trying to implement the zoomable sunburst with d3.js, but the idea is to update dynamically the levels/children of the partition nodes. For example, on load you just see the root and the children, but when I you click on that children I want to…
andy_314
  • 431
  • 5
  • 17
4
votes
1 answer

Display sunburst as a semicircle

Is it possible to create a sunburst that is shaped as a semicircle? I was able to give it the shape that I want, but I have problems with the nodes. Not all the colors appear on the new shape and the text is displayed wrong. var partition =…
Crina
  • 71
  • 2
4
votes
1 answer

d3.js, click action to another URL encoding with array of variables of sunburst

I made sequences sunburst visualization and want to add a link to each path. I read similar question d3.js, click to link to another URL encoded with variables and could make a link based on variable of specific path. (See the code below) This Code…
Yoko
  • 65
  • 1
  • 6
1
2
3
22 23