Hi all, I am building a Dash Python app. In which I have 16 users data and show 16 graph on a page. I display other graph and they all look ok. But one specific graph is not shown correctly. it only show last 8 graph correctly and first 8 graph not showing. whenever I resize the window the first graph blink and show line then again disappear.
the plot function code is hear.
def ecg_plot(chunked_ecg, X):
fig = go.Figure()
fig = px.line(x=X, y=chunked_ecg)
fig.update_layout(xaxis=dict(
showgrid=True,
showticklabels=True,
tickfont=dict(
family='Arial',
size=10,
color='rgb(150, 150, 150)',
),
),
yaxis=dict(
zeroline=False,
showline=False,
showgrid=True,
tickfont=dict(
family='Arial',
size=10,
color='rgb(150, 150, 150)',
),
),
autosize=True,
margin=dict(
autoexpand=True,
l=100,
r=20,
t=50,
),
xaxis_title='Time (s)',
yaxis_title='ecg (mv)',
showlegend=False,
font_color='rgb(150, 150, 150)',
font_size=10,
# width=1000, height=300,
plot_bgcolor='pink')
fig.update_traces(line=dict(color='black', width=1))
return fig
i also check it on diffrent browser it same.
my work env is local with python 3.9 and latest dash version.