@vialeca wrote:
I created a sunburst figure with a color scale, but when inserting it into my app, it ignores the color code. How can I maintain the color??
mycode:
fig =go.Figure(go.Sunburst( ids = ids, labels= l , parents= p , values= v, branchvalues="total", marker=dict( colors=c, colorscale='rdylgn',), hovertemplate='<b>%{label} </b> <br> Total de questões: %{value}<br> Taxa de preenchimento: %{color:.0f} %', )) fig.update_layout(margin = dict(t=0, l=0, r=0, b=0)) fig.show() graph = dcc.Graph(figure = fig) layout=[ graph ] app.layout = html.Div(children = layout ) app.run_server()
Posts: 6
Participants: 2