Black Lives Matter. Please consider donating to Black Girls Code today.

I want to overlap the graph!

hello? i’m yubak.
I want to overlap the graph


it is my js code. x,y data bring from php

As a result of the above code.

That is, they output independently in a single line without overlapping (ex MATLAB hold on ).
I want to make trace1 and trace2 overlap
(note that the x-axis is a timestamp, and the timestamps of the two traces are not duplicates even if they have different values).

What if I do not want to hide the x-axis values ​​in addition?

Using date strings that plotly understands would be a good place to start.

See https://plot.ly/javascript/time-series/