Skip to content

Instantly share code, notes, and snippets.

@kurasaiteja
Created July 28, 2020 13:12
Show Gist options
  • Save kurasaiteja/749d7fe806b0ac9da73d4d4886228739 to your computer and use it in GitHub Desktop.
Save kurasaiteja/749d7fe806b0ac9da73d4d4886228739 to your computer and use it in GitHub Desktop.
fig = go.Figure()
fig.add_trace(go.Bar(
x=columns,
y=averages_AP,
name="AP",
marker_color='indianred'
))
fig.add_trace(go.Bar(
x=columns,
y=averages_Telangana,
name='Telangana',
marker_color='lightsalmon'
))
# Here we modify the tickangle of the xaxis, resulting in rotated labels.
fig.update_layout(barmode='group', xaxis_tickangle=-45)
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment