# Graph: differences in the X axis are not equal

**URL:** <https://discuss.elastic.co/t/graph-differences-in-the-x-axis-are-not-equal/104328>\
**Category:** Kibana\
**Created:** [October 18, 2017, 6:11am UTC](https://discuss.elastic.co/t/graph-differences-in-the-x-axis-are-not-equal/104328 "2017-10-18T06:11:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomer](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@tomer](https://discuss.elastic.co/u/tomer)\
**Post date:** [October 18, 2017, 6:11am UTC](https://discuss.elastic.co/t/graph-differences-in-the-x-axis-are-not-equal/104328/1 "2017-10-18T06:11:29Z")

</div>

Hi,

I created a line graph where the Y axis is a value that is created every 5 minutes (the value is a percentage of how "healthy" the system is). My X axis is based on a time stamp called "eventTimeStamp").

When I use a size of N in the X-axis, I get a graph that looks to be correct, but the distances between each "dot" comprising the graph are visualized inequally. One dot can be 20 pixels from the next one, then the dot after that appears 100 pixels from that previous one. However, when I hover my mouse over the dots, the values in the tooltip show timestamp intervals which are 5 minutes each, which is correcy.

As an example between 2 dots there might be 1 cm difference and between another 2 dots the difference might be 5 cm. In the following screenshots you can see a demonstration of this problem:

14:25

 ![kibana screenshot 2](https://us1.discourse-cdn.com/elastic/original/3X/4/1/4154e8b949365657e147e01df951e9e09f024261.png)  
14:30  
 ![kibana screenshot 3](https://us1.discourse-cdn.com/elastic/original/3X/d/7/d737d72350541555d8485b6a0cab51e1ac3babee.png)  
14:35  
 ![kibana screenshot 1](https://us1.discourse-cdn.com/elastic/original/3X/f/9/f972c1d312a25e16740738564f9a0de5186c03e5.png)

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [October 20, 2017, 6:28am UTC](https://discuss.elastic.co/t/graph-differences-in-the-x-axis-are-not-equal/104328/2 "2017-10-20T06:28:42Z")

</div>

Could you also show your data configuration ?  
it looks like you do not have date\_histogram aggregation on your x-axis, but a term or something similar, as each of the dates is interpreted as a string, not as a date. That's probably the reason why the spacing between points is not correct.

---

<div class="post-metadata">

**Author:** ![tomer](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@tomer](https://discuss.elastic.co/u/tomer)\
**Post date:** [October 22, 2017, 9:42am UTC](https://discuss.elastic.co/t/graph-differences-in-the-x-axis-are-not-equal/104328/3 "2017-10-22T09:42:55Z")

</div>

Thanks!  
It really was as a term. Some colleague of mine fixed it so I don't know for sure that this was the problem

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 19, 2017, 9:42am UTC](https://discuss.elastic.co/t/graph-differences-in-the-x-axis-are-not-equal/104328/4 "2017-11-19T09:42:56Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
