Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Adjust Sunburst Leaf Color/Opacity

$
0
0

Hello,

I am trying to use custom colors in this sunburst chart, but I am unable to adjust the opacity. How can I set the opacity to 100% on everything?

fig =px.sunburst(
    {
        'labels': labels,
        'values': values,
        'parents': parents,
    },
    names='labels',
    values='values',
    parents='parents',
    branchvalues='total',
    color='labels',
    color_discrete_sequence=px.colors.qualitative.Plotly,
    color_discrete_map={
        'Cracked': px.colors.qualitative.Plotly[1],
        'Uncracked': px.colors.qualitative.Plotly[0],
        'Compliant': px.colors.qualitative.Plotly[0],
        'Non-Compliant': px.colors.qualitative.Plotly[1],
    },
)

fig.update_layout(
    height=600,
    template=theme,
    margin=dict(t=0, l=0, r=0, b=0),
    font_color='white',
    font=dict(size=20),
    title_font_color='white',
    paper_bgcolor='rgba(0,0,0,0)',
    plot_bgcolor='rgba(0,0,0,0)'
)

Thanks!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 6271

Latest Images

Trending Articles



Latest Images