- it's simple to hide grid lines
.update_layout(xaxis_showgrid=False, yaxis_showgrid=False)
- full working example below
df = pd.DataFrame(np.sort(np.random.uniform(.4, .9,1000)), columns=["scores"]).reset_index().rename(columns={"index":"classement"}).assign(something=99)
px.bar(df, x='classement', y='scores',title = 'classement', hover_name = 'something', width = 1500, height = 900,
color_continuous_scale='temps', color = 'classement',facet_col_spacing=0, range_y=[0,1]).update_layout(xaxis_showgrid=False, yaxis_showgrid=False)
10k rows
- need to set
marker_line_width
- full code below
df = (
pd.DataFrame(np.sort(np.random.uniform(0.4, 0.9, 10000)), columns=["scores"])
.reset_index()
.rename(columns={"index": "classement"})
.assign(something=99)
)
px.bar(
df,
x="classement",
y="scores",
title="classement",
hover_name="something",
height=900,
width=1500,
color_continuous_scale="temps",
color="classement",
facet_col_spacing=0,
range_y=[0, 1],
).update_traces(marker_line_width=0).update_layout(xaxis_showgrid=False, yaxis_showgrid=False)