# Add abbrevation to tick format in polty

**URL:** https://community.plotly.com/t/add-abbrevation-to-tick-format-in-polty/78039
**Category:** 📊 Plotly Python
**Tags:** question
**Created:** [August 25, 2023, 5:43am UTC](https://community.plotly.com/t/add-abbrevation-to-tick-format-in-polty/78039 "2023-08-25T05:43:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Vaishali](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/vaishali/32/33388_2.png) [@Vaishali](https://community.plotly.com/u/Vaishali)
#### Post date: [August 25, 2023, 5:43am UTC](https://community.plotly.com/t/add-abbrevation-to-tick-format-in-polty/78039/1 "2023-08-25T05:43:51Z")

</div>

```auto
fig.update_yaxes(
        title_font_size=12,
        tickfont_size=10,
        tickformat=".2s",
    )

```

I’m using this to add K,M, B abbrevation to tick label.  
but when the date is 0.12 or 0. something its showing like this

 ![image](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/8/0/80ce8dc39c270deee5824f02b3ad280d9154298c.png)

---

<div class="post-metadata">

### Author: ![AIMPED](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/aimped/32/21758_2.png) [@AIMPED](https://community.plotly.com/u/AIMPED)
#### Post date: [August 25, 2023, 7:17am UTC](https://community.plotly.com/t/add-abbrevation-to-tick-format-in-polty/78039/2 "2023-08-25T07:17:13Z")

</div>

Are you sure the data on the xaxis is numerical?

---

<div class="post-metadata">

### Author: ![Vaishali](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/vaishali/32/33388_2.png) [@Vaishali](https://community.plotly.com/u/Vaishali)
#### Post date: [August 25, 2023, 7:33am UTC](https://community.plotly.com/t/add-abbrevation-to-tick-format-in-polty/78039/3 "2023-08-25T07:33:45Z")

</div>

yes it is int64
