Adding hline to existing chart in dash

hello
i used this code to adding horizontal line and was ok.

df = px.data.stocks(indexed=True)
fig = px.line(df)
fig.add_hline(y=1.2)
fig.show()

i wanna using this chart to dash, but when i add hline the output becomes like dis picure

just for when i adding hline

please help me
thank you

Hi @reezaa2013

In the link below is an example that works in Dash:

Aparently (I do not analyze in detail), it works using fig.add_hrect

thank you
but solved this problem, it was just for my version of my dash that was 1.18.1
i upgrate it to 1.19 and was solved.
it was a bug for dash that it fixed in new version