Using Plotly I want to change the xticks labels to custom labels. (Something like 'Area1', 'Area2', 'Area3'....) Where and how I need to add the code?
Currently, it is taking the xtick labels directly from the dataframe.
Following is the code for update the xticks I have used now.
fig = px.bar(df2,
x='Area_Name',
y='Per_User_Averge_Download_Speed_Mbp',
hover_data=['Users_in_Area',
'Per_User_Averge_Download_Speed_Mbp'],
color='Per_User_Averge_Download_Speed_Mbp',
height=400,
color_continuous_scale=px.colors.qualitative.Antique,
labels=dict(
Area_Name="Area",
Per_User_Averge_Download_Speed_Mbp="Download Speed/(Mbps)",
Users_in_Area="User Count")
)
fig.update_xaxes(showline=True,
linewidth=1,
linecolor='black',
mirror=True,
tickangle=-90,
tickfont=dict(family='Rockwell', color='crimson', size=14))