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

**URL:** https://community.plotly.com/t/how-to-fix-xaxis-range-as-per-zoom-out-in-plotly-javascript/80958
**Category:** plotly.js
**Created:** [December 15, 2023, 1:11pm UTC](https://community.plotly.com/t/how-to-fix-xaxis-range-as-per-zoom-out-in-plotly-javascript/80958 "2023-12-15T13:11:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nishku](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/nishku/32/26162_2.png) [@nishku](https://community.plotly.com/u/nishku)
#### Post date: [December 15, 2023, 1:11pm UTC](https://community.plotly.com/t/how-to-fix-xaxis-range-as-per-zoom-out-in-plotly-javascript/80958/1 "2023-12-15T13:11:34Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/d/c/dc6501a774ee0a72ee787a9945eb1ade0a0ffab3.png)
