# bar with annotations
df = px.data.gapminder().query("continent == 'Europe' and year == 2007 and pop > 10.e6")
fig = px.bar(df, y='pop', x='country', text='pop')
fig.update_traces(texttemplate='%{text:.2s}', textposition='outside')
fig.update_layout(uniformtext_minsize=8, uniformtext_mode='hide')
fig.show()
colors = ['dodgerblue',] * 5
colors[3] = 'firebrick'
fig = go.Figure(data=[go.Bar(
x=['Jonas', 'Julian', 'Marius',
'Adrien', 'Jane'],
y=[80, 85, 79, 50, 90],
marker_color=colors # marker color can be a single color value or an iterable
)])
fig.update_layout(title_text= 'Students Score')