Hello,
I am using px.scatter
I want to select range in yaxis
here is my code where X axis is DateTime and y axis is a score (float)
I want to select specific region in terms of y axis.
Is it possible ?
Code:
fig = px.scatter(data_frame=agg,
x = agg["DateTime"],
y = agg["Score"],
color=agg["x"],
hover_name=agg["link"],
height=600,
width=2500,
render_mode="webgl",
color_continuous_scale=px.colors.sequential.Inferno,
title=" Score Distribution")
SCATTER_PLOT_LAYOUT = go.layout.XAxis(anchor='y',
domain=[0.0, 0.7363],
rangeselector=dict(
buttons=list([
dict(count=1,
label="1m",
step="month",
stepmode="backward"),
dict(count=6,
label="6m",
step="month",
stepmode="backward"),
dict(count=1,
label="YTD",
step="year",
stepmode="todate"),
dict(count=1,
label="1y",
step="year",
stepmode="backward"),
dict(step="all")
])
),
rangeslider=dict(
visible=True
),
type="date"
)
fig.update_layout(xaxis=SCATTER_PLOT_LAYOUT)
Thanks