# 📣 Announcing Dash Sunburst

**URL:** <https://community.plotly.com/t/announcing-dash-sunburst/15074>\
**Category:** Dash Python\
**Tags:** announcements\
**Created:** [October 29, 2018, 9:13pm UTC](https://community.plotly.com/t/announcing-dash-sunburst/15074 "2018-10-29T21:13:50Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![chriddyp](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/chriddyp/32/16855_2.png) [@chriddyp](https://community.plotly.com/u/chriddyp)\
**Post date:** [October 29, 2018, 9:13pm UTC](https://community.plotly.com/t/announcing-dash-sunburst/15074/1 "2018-10-29T21:13:50Z")

</div>

👋 Hey Dash Club –

We’ve just created a set of tutorials to help Dash component plugin authors reconcile the differences between D3.js and React ([Integrating D3.js into Dash Components | Dash for Python Documentation | Plotly](https://dash.plot.ly/d3-react-components)). As part of these tutorials, we made a few D3.js components that are functional on their own. One of these is the Dash Sunburst component.

👉[GitHub - plotly/dash-sunburst: Dash / React + D3 tutorial: Sunburst diagrams](https://github.com/plotly/dash-sunburst)

 ![sunburst](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/6/64d0e1e66359371e393cdc05a8bf986768f27a32.gif)

Connecting these sunburst charts to Dash is really cool because it enables simple server-side updates via Dash callbacks. If your data is large, e.g. if you are viewing hundreds of layers, then a sunburst chart can quickly become incomprehensible. With Dash, you can update the chart from the Python backend, enabling you to progressively explore the radial network:

 ![sunburst-dropdown](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/4/4c854a27158a887642b0d3e77573bbafa12e1bd6.gif)

 ![sunburst-selections](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/5/5c2b06054a823e50481957f267179fa7e24dca03.gif)

This work was sponsored by an organization ❤ If your organization would like to sponsor our development directly or through our commercial offerings, please reach out: [Consulting, Training & Open-Source Development](https://plot.ly/products/consulting-and-oem/)

---

<div class="post-metadata">

**Author:** ![dayxx369](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@dayxx369](https://community.plotly.com/u/dayxx369)\
**Post date:** [July 29, 2019, 5:01pm UTC](https://community.plotly.com/t/announcing-dash-sunburst/15074/2 "2019-07-29T17:01:48Z")

</div>

Thank you very much for this. How can I download this package to use for dash? I am trying pip install dash\_sunburst, but it is not working. Is there a link that you can possibly provide? thanks

---

<div class="post-metadata">

**Author:** ![David22](https://avatars.discourse-cdn.com/v4/letter/d/439d5e/32.png) [@David22](https://community.plotly.com/u/David22)\
**Post date:** [July 29, 2019, 5:40pm UTC](https://community.plotly.com/t/announcing-dash-sunburst/15074/3 "2019-07-29T17:40:31Z")

</div>

Everything explained here :[https://plot.ly/python/v3/sunburst-charts/](https://plot.ly/python/v3/sunburst-charts/)

---

<div class="post-metadata">

**Author:** ![dayxx369](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@dayxx369](https://community.plotly.com/u/dayxx369)\
**Post date:** [July 29, 2019, 6:15pm UTC](https://community.plotly.com/t/announcing-dash-sunburst/15074/4 "2019-07-29T18:15:45Z")

</div>

This does not help me with downloading the dash\_sunburst package. I cannot use go.Sunburst for some reason because when I run the program, the graph will not appear.

---

<div class="post-metadata">

**Author:** ![pengchuzhang](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@pengchuzhang](https://community.plotly.com/u/pengchuzhang)\
**Post date:** [November 4, 2019, 2:43pm UTC](https://community.plotly.com/t/announcing-dash-sunburst/15074/5 "2019-11-04T14:43:30Z")

</div>

Actually, it is very straightforward to download and use it, took only five minutes.  
However, I could not enlarge and shrink the size of a sunburst graph. Anyone can help this.  
pzhang

---

<div class="post-metadata">

**Author:** ![chriddyp](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/chriddyp/32/16855_2.png) [@chriddyp](https://community.plotly.com/u/chriddyp)\
**Post date:** [November 4, 2019, 3:54pm UTC](https://community.plotly.com/t/announcing-dash-sunburst/15074/6 "2019-11-04T15:54:56Z")

</div>

FYI - We have two sunburst implementations now.

1. This post outlined a custom sunburst created from scratch with D3 as a separate Dash plugin. It’s intent was as much a tutorial on how to use D3 in a Dash component as it was to have a useful standalone chart type.
2. After we released this custom component, we took what we learned and created a 1st class `dcc.Graph` chart type. This was done by updating `plotly.js`, the underlying graphing library that powers Dash & the Plotly’s Python graphing library (`plotly.py`).

We recommend using the official `dcc.Graph` chart type - It has more features and will get more attention from us on the development side of things. This chart type is documented here: [https://plot.ly/python/sunburst-charts/](https://plot.ly/python/sunburst-charts/)

---

<div class="post-metadata">

**Author:** ![pengchuzhang](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@pengchuzhang](https://community.plotly.com/u/pengchuzhang)\
**Post date:** [November 4, 2019, 4:59pm UTC](https://community.plotly.com/t/announcing-dash-sunburst/15074/7 "2019-11-04T16:59:26Z")

</div>

Thanks for Chriddyp for this updated information. However, I could not make one of the simple example from /pyton/sunburst to work on dash. Here are my codes and error message:

import dash  
from dash.dependencies import Input, Output  
import dash\_core\_components as dcc  
import dash\_html\_components as html  
import plotly.graph\_objs as go

app = dash.Dash(’’)

# app.scripts.config.serve\_locally = True

# app.css.config.serve\_locally = True

app.layout = html.Div([  
html.Div([dcc.Graph(id=‘sun’)]),  
html.Div(id=‘output’, style={‘clear’: ‘both’}),  
])

@app.callback((Output(‘sun’, ‘figure’), Input(‘output’, ‘data’)))  
def updatesun(data):  
fig = go.Figure(go.Sunburst(  
labels=[“Eve”, “Cain”, “Seth”, “Enos”, “Noam”, “Abel”, “Awan”, “Enoch”, “Azura”],  
parents=["", “Eve”, “Eve”, “Seth”, “Seth”, “Eve”, “Eve”, “Awan”, “Eve”],  
values=[65, 14, 12, 10, 2, 6, 6, 4, 4],  
branchvalues=“total”))  
fig.update\_layout(margin=dict(t=0, l=0, r=0, b=0)),  
return fig

if **name** == ‘ **main** ’:  
app.run\_server(debug=True)

dash.exceptions.IncorrectTypeException: The output argument `output.data` must be of type `dash.Output`.

Please let me know what I need to make the dash work. Thanks/

Pengchu

---

<div class="post-metadata">

**Author:** ![pengchuzhang](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@pengchuzhang](https://community.plotly.com/u/pengchuzhang)\
**Post date:** [November 4, 2019, 11:28pm UTC](https://community.plotly.com/t/announcing-dash-sunburst/15074/8 "2019-11-04T23:28:04Z")

</div>

Never mind, I figured out how to plot it by following the plotly documentation. Thanks.

---

<div class="post-metadata">

**Author:** ![chriddyp](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/chriddyp/32/16855_2.png) [@chriddyp](https://community.plotly.com/u/chriddyp)\
**Post date:** [August 31, 2021, 5:27am UTC](https://community.plotly.com/t/announcing-dash-sunburst/15074/9 "2021-08-31T05:27:34Z")

</div>

Split this topic on August 31, 2021, 5:27am UTC

A post was split to a new topic: [go.Sunburst vs px.Sunburst](https://community.plotly.com/t/go-sunburst-vs-px-sunburst/56086)
