# Plotly axis for Decimal values

**URL:** <https://community.plotly.com/t/plotly-axis-for-decimal-values/25897>\
**Category:** plotly.js\
**Created:** [July 15, 2019, 10:41am UTC](https://community.plotly.com/t/plotly-axis-for-decimal-values/25897 "2019-07-15T10:41:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![siraj](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@siraj](https://community.plotly.com/u/siraj)\
**Post date:** [July 15, 2019, 10:41am UTC](https://community.plotly.com/t/plotly-axis-for-decimal-values/25897/1 "2019-07-15T10:41:26Z")

</div>

I need the AutoRange values which is set to the x and y axis values. Instead of me setting the tickvals I need to slightly modify the auto-generated ones

For ex: I have y axis values as  
0.009,  
0.00905,  
0.0091,  
0.00915 etc.

here if you see the last 0s after decimals are ignored and its is confusing when we show the data in the graph.

I want with those values. So instead of me generating the intervals if i can modify them and send as tickvals n ticktext it will be easy to manipulate and I want end result as

0.00900,  
0.00905,  
0.00910,  
0.00915

---

<div class="post-metadata">

**Author:** ![etienne](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/etienne/32/17_2.png) [@etienne](https://community.plotly.com/u/etienne)\
**Post date:** [July 15, 2019, 1:20pm UTC](https://community.plotly.com/t/plotly-axis-for-decimal-values/25897/2 "2019-07-15T13:20:57Z")

</div>

Here’s one way: [https://codepen.io/etpinard/pen/BggpeW?editors=1010](https://codepen.io/etpinard/pen/BggpeW?editors=1010)

---

<div class="post-metadata">

**Author:** ![siraj](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@siraj](https://community.plotly.com/u/siraj)\
**Post date:** [July 17, 2019, 9:34am UTC](https://community.plotly.com/t/plotly-axis-for-decimal-values/25897/3 "2019-07-17T09:34:49Z")

</div>

Yeah I used this and now its perfect. Thanks
