# X-coordinates in Data Format

**URL:** <https://community.plotly.com/t/x-coordinates-in-data-format/588>\
**Category:** Plotly Fundamentals\
**Created:** [February 29, 2016, 1:19pm UTC](https://community.plotly.com/t/x-coordinates-in-data-format/588 "2016-02-29T13:19:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nithyaranim](https://avatars.discourse-cdn.com/v4/letter/n/f1d935/32.png) [@nithyaranim](https://community.plotly.com/u/nithyaranim)\
**Post date:** [February 29, 2016, 1:19pm UTC](https://community.plotly.com/t/x-coordinates-in-data-format/588/1 "2016-02-29T13:19:46Z")

</div>

Hi

I am displaying Month and Year in a xaxis. I want to display all the months in order from Jan to Dec.

I have tried to convert date to JS dates. Its works fine. But My issue is after converting to date in my x axis all the x axis values are not displaying.

Example.  
I have **‘Jan-2015’, ‘Feb-2015’, ‘Apr-2015’, ‘Aug-2015’, ‘Mar-2015’, ‘May-2015’** values as my x-axis values. But Its displaying only **‘Jan-2015’,‘Mar-2015’, ‘May-2015’,‘Jul-2015’**

**‘Feb-2015’,‘Apr-2015’** is not displaying in X-Axis.

I Don’t have **'July-2015** ’ Data but its displaying in X-Axis label

Below is the code pen for the same.

https://codepen.io/nithyaranim/embed/preview/grbbdX?height=300&slug-hash=grbbdX&default-tabs=js,result&host=https://codepen.io&embed-version=2

---

<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:** [February 29, 2016, 2:01pm UTC](https://community.plotly.com/t/x-coordinates-in-data-format/588/2 "2016-02-29T14:01:41Z")

</div>

The easiest way to do this at the moment would be to use the `tickvals` and `ticktext` axis attributes:

---

<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:** [February 29, 2016, 2:01pm UTC](https://community.plotly.com/t/x-coordinates-in-data-format/588/3 "2016-02-29T14:01:54Z")

</div>

Oops. Forgot to paste the pen:

[http://codepen.io/etpinard/pen/jqEPyg](http://codepen.io/etpinard/pen/jqEPyg)?
