How to fix xaxis range as per zoom out in plotly javascript

Hi there, how to fit the xaxis range as per zoom out currently dticks is increasing on zoom out click