(upload://zBgtBbnrLpbQdlzMZcHeFB1jEkv.png) Large number of slices for sunburst charts which is working in your case https://plot.ly/python/sunburst-charts/ is not working in my case, it just appears a blank white screen without any charts.
length of labels , ids , parents is 74 ( with repetition),
but it works fine (chart appears properly) if the length of the labels,ids,parents is 35 (with repetition).
??
import plotly
import plotly.graph_objs as go
values=[14439.6, 650.0, 202.0, 242.0, 206.0, 520.0, 220.0, 120.0, 180.0, 489.6, 129.6, 210.0, 150.0, 12780.0, 5410.0, 7010.0, 360.0, 862.9000000000001, 456.40000000000003, 85.4, 109.2, 46.9, 84.8, 76.9, 53.2, 406.5, 77.3, 80.5, 42.7, 79.3, 78.2, 48.5, 466.30199999999996, 36.0, 11.7, 12.3, 12.0, 76.1, 26.0, 27.7, 22.4, 49.599999999999994, 16.2, 16.6, 16.8, 28.82, 14.41, 14.41, 38.129999999999995, 13.0, 13.18, 11.95, 31.243000000000002, 10.47, 10.41, 10.363, 40.599999999999994, 14.879999999999999, 13.77, 11.95, 23.459, 11.92, 11.539, 46.43, 16.79, 15.780000000000001, 13.86, 72.86, 22.47, 24.240000000000002, 26.15, 23.06, 11.53, 11.53]
labels=['UK','city2', 'place7', 'place8', 'place9', 'city5','place7', 'place8', 'place9', 'city6', 'place7', 'place8', 'place9', 'city7', 'place7', 'place8', 'place9', 'China', 'city8', 'place5', 'place3', 'place4', 'place1', 'place2', 'place6', 'city9', 'place5', 'place3', 'place4', 'place1', 'place2', 'place6', 'India', 'city1', 'place7', 'place8', 'place9', 'city2', 'place7', 'place8', 'place9', 'city10', 'place7', 'place8', 'place9', 'city11', 'place8', 'place9', 'city12', 'place7', 'place8', 'place9', 'city13', 'place7', 'place8', 'place9', 'city3', 'place7', 'place8', 'place9', 'city4', 'place8', 'place9', 'city14', 'place7', 'place8', 'place9', 'city15', 'place7', 'place8', 'place9', 'city16', 'place8', 'place9']
parents=['', 'UK', 'city2', 'city2', 'city2', 'UK', 'city5', 'city5', 'city5', 'UK', 'city6', 'city6', 'city6', 'UK', 'city7', 'city7', 'city7', '', 'China', 'city8', 'city8', 'city8', 'city8', 'city8', 'city8', 'China', 'city9', 'city9', 'city9', 'city9', 'city9', 'city9', '', 'India', 'city1', 'city1', 'city1', 'India', 'city2', 'city2', 'city2', 'India', 'city10', 'city10', 'city10', 'India', 'city11', 'city11', 'India', 'city12', 'city12', 'city12', 'India', 'city13', 'city13', 'city13', 'India', 'city3', 'city3', 'city3', 'India', 'city4', 'city4', 'India', 'city14', 'city14', 'city14', 'India', 'city15', 'city15', 'city15', 'India', 'city16', 'city16']
labels1=labels[0:17];labels1.extend(labels[32:73])
parents1=parents[0:17];parents1.extend(parents[32:73])
values1=values[0:17];values1.extend(values[32:73])
trace1 = go.Sunburst(
ids=tuple(labels[0:17],),
labels=tuple(labels[0:17],),
parents=tuple(parents[0:17],),
values=tuple(values[0:17],),
domain=dict(column=0),
maxdepth=5
)
trace2 = go.Sunburst(
ids=tuple(labels[17:32],),
labels=tuple(labels[17:32],),
parents=tuple(parents[17:32],),
values=tuple(values[17:32],),
domain=dict(column=0),
maxdepth=5
)
trace3 = go.Sunburst(
ids=tuple(labels[32:73],),
labels=tuple(labels[32:73],),
parents=tuple(parents[32:73],),
values=tuple(values[32:73],),
domain=dict(column=0),
maxdepth=5
)
trace4 = go.Sunburst(
ids=tuple(labels[:32],),
labels=tuple(labels[:32],),
parents=tuple(parents[:32],),
values=tuple(values[:32],),
domain=dict(column=0),
maxdepth=5
)
trace5 = go.Sunburst(
ids=tuple(labels[17:73],),
labels=tuple(labels[17:73],),
parents=tuple(parents[17:73],),
values=tuple(values[17:73],),
domain=dict(column=0),
maxdepth=5
)
trace6 = go.Sunburst(
ids=tuple(labels1,),
labels=tuple(labels1,),
parents=tuple(parents1,),
values=tuple(values1,),
domain=dict(column=0),
maxdepth=5
)
trace7 = go.Sunburst(
ids=tuple(labels2,),
labels=tuple(labels2,),
parents=tuple(parents2,),
values=tuple(values2,),
domain=dict(column=0),
maxdepth=5
)
layout = go.Layout(
grid=go.layout.Grid(columns=2, rows=1),
margin = go.layout.Margin(t=0, l=0, r=0, b=0),
sunburstcolorway=[
"#636efa","#EF553B","#00cc96","#ab63fa","#19d3f3",
"#e763fa", "#FECB52","#FFA15A","#FF6692","#B6E880",
],
extendsunburstcolors=True
)
data = [trace7]
fig = go.Figure(data, layout)
plotly.offline.plot(fig, filename='large_number_of_slices')
Here i will get the blank screen if i combine the data of all three country (UK ,China ,India)
(you can observer if you modify data as " data = [trace7] "