Line plot is haphazard

I have been trying to plot different trance of Line in a single plot. When I add multiple traces the the line is plotted with points 0 for each point. It plots good when plotted as single trace.


This is the lot with multiple traces put in one pot. The ORANGE LINE is going up-down even tough the data is clear.


The Same line when plotted in a single trace is looking like this.

code used for the plot

COMBINE_PLOT.add_trace(go.Scatter(
x=main_fil[‘Date’],
y=main_fil[‘Y_data’],
name=uq_id,
mode=‘lines’,
hovertext=hovertext, # Set the hover text
hovertemplate=‘%{hovertext}’,
marker=dict(color=‘lightgrey’)))

COMBINE_PLOT.update_layout(title_text=“title”)

filename2 = “COMBINEPLOT_”+str(out_file_name)
offline.plot(COMBINE_PLOT, filename=filename2, auto_open=True)

HI @svignesh.mk7 welcome to the community.

This must be something related to your data. Without the data it’ll be difficult to help you, unfortunately.

The data is same, no change in the df . First image I ran multiple add-trace in for loop, in the second image i ran a single iteration of that particular orange line.