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 px
import pandas as pd
df = pd.read_excel("/Users/stuff/Desktop/test.xlsx")
g1 = df.Group1
g2 = df.Group2
g3 = df.Group3
g4 = df.Group4
my_values = df.Values
df = pd.DataFrame(
dict(group1=g1, group2=g2, group3=g3, group4=g4, my_values=my_values)
)
fig = px.sunburst(df, path=['group1', 'group2', 'group3', 'group4'], values='my_values')
fig.show()
The current sunburst diagram looks like this:
Is it possible to wrap the text? I would like the long text to be as big as possible and split by break line as I would like to use the image for a presentation.