# Line chart bad ordering

**URL:** <https://discuss.elastic.co/t/line-chart-bad-ordering/89370>\
**Category:** Kibana\
**Created:** [June 14, 2017, 11:56am UTC](https://discuss.elastic.co/t/line-chart-bad-ordering/89370 "2017-06-14T11:56:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrei\_Baltatu](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@Andrei\_Baltatu](https://discuss.elastic.co/u/Andrei_Baltatu)\
**Post date:** [June 14, 2017, 11:56am UTC](https://discuss.elastic.co/t/line-chart-bad-ordering/89370/1 "2017-06-14T11:56:54Z")

</div>

Hello,

I am using kibana 4.5x and I want to do the following visualization. Take the top 10 counts for some field and for each do a separate line chart with X axis as the timestamp.

So I firstly set the X axis and then subbucket through terms and order Desc. This doesn't do the right thing, it takes partial lines sometimes. The other way is to set the X axis as the term and order and then subbucket by timestamp, but this gives me the chart for every day, not every term from first 10 ordering by count

Is there any way to do this with kibana 4.5?

Best regards!

---

<div class="post-metadata">

**Author:** ![Andrei\_Baltatu](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@Andrei\_Baltatu](https://discuss.elastic.co/u/Andrei_Baltatu)\
**Post date:** [June 14, 2017, 2:53pm UTC](https://discuss.elastic.co/t/line-chart-bad-ordering/89370/2 "2017-06-14T14:53:39Z")

</div>

It seems like I solved the problem.

The topic can be closed!

---

<div class="post-metadata">

**Author:** ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)\
**Post date:** [June 14, 2017, 5:09pm UTC](https://discuss.elastic.co/t/line-chart-bad-ordering/89370/3 "2017-06-14T17:09:23Z")

</div>

Thanks!

---

<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:** [July 12, 2017, 5:09pm UTC](https://discuss.elastic.co/t/line-chart-bad-ordering/89370/4 "2017-07-12T17:09:39Z")

</div>

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