Black Lives Matter. Please consider donating to Black Girls Code today.

Changing box colors of plotly express boxplot

Hi,

I’ve been struggling to change the color of my boxplot using plotly express. What would be the correct syntax to change it in one go (I don’t want to create separate traces).

My code:
px.box(df, x=‘YEAR’, y=‘Percentile’,title=‘Boxplot percentile’, template=“simple_white”
).update_layout(showlegend=False,
xaxis_title=“year”,
font=dict(family=“Verdana”,
color= ’ blue’)
).update_yaxes(autorange=“reversed”,
title_text= “blabla”)

Thank you very much!