Get min and max values of x axis which is time series,

Hi,
I need to get min and max values of x axis which is time series, when I change it on the graph.
I tried to use relayout event but failed.
How can I do that?
Regards

Iā€™d like to know the answer to this as well

@dayxx369 Compute min and max of x-coordinates of your data and define:

xaxis=dict( range=[xmin, xmax])

Later you can update them as follows:

fig.layout.xaxis.update(range=[new_xmin, new_xmax])