# Custom y axis

**URL:** <https://discuss.elastic.co/t/custom-y-axis/96000>\
**Category:** Kibana\
**Created:** [August 6, 2017, 2:40am UTC](https://discuss.elastic.co/t/custom-y-axis/96000 "2017-08-06T02:40:11Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nithin\_Devang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nithin_devang/32/25023_2.png) [@Nithin\_Devang](https://discuss.elastic.co/u/Nithin_Devang)\
**Post date:** [August 6, 2017, 2:40am UTC](https://discuss.elastic.co/t/custom-y-axis/96000/1 "2017-08-06T02:40:11Z")

</div>

Hi,  
I have multiple doc in this format  
"x": {  
"frequency" : 13.671875,  
"amplitude": 109.45423957023802  
}

I want to plot line graph with amplitude in y axis and frequency in x axis, I am not finding any option which shows me such data ☹

---

<div class="post-metadata">

**Author:** ![Stacey\_Gammon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stacey_gammon/32/14025_2.png) [@Stacey\_Gammon](https://discuss.elastic.co/u/Stacey_Gammon)\
**Post date:** [August 7, 2017, 2:00pm UTC](https://discuss.elastic.co/t/custom-y-axis/96000/2 "2017-08-07T14:00:47Z")

</div>

For the y-axis you can use a min or max aggregration and then select x.frequency. As long as there is only ever one unique frequency per amplitude value, then min and max will give you the same value.

 ![42 AM](https://us1.discourse-cdn.com/elastic/original/3X/9/2/924464da4e4eb1b764c0250a32517c1d36ac9f5b.png)

Let me know if this answers your question!

---

<div class="post-metadata">

**Author:** ![Nithin\_Devang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nithin_devang/32/25023_2.png) [@Nithin\_Devang](https://discuss.elastic.co/u/Nithin_Devang)\
**Post date:** [August 7, 2017, 3:43pm UTC](https://discuss.elastic.co/t/custom-y-axis/96000/3 "2017-08-07T15:43:25Z")

</div>

Hi Stacey, Thank you for the reply, I am not getting the expected result.

 ![Screenshot from 2017-08-07 10-41-54](https://us1.discourse-cdn.com/elastic/original/3X/5/0/5023d41d3dd77cec543a0ca0e8b3aa5cfc8df012.png)

---

<div class="post-metadata">

**Author:** ![Stacey\_Gammon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stacey_gammon/32/14025_2.png) [@Stacey\_Gammon](https://discuss.elastic.co/u/Stacey_Gammon)\
**Post date:** [August 7, 2017, 3:44pm UTC](https://discuss.elastic.co/t/custom-y-axis/96000/4 "2017-08-07T15:44:29Z")

</div>

Do you have data for those fields in the last 15 minutes? Maybe expanding your time range will help?

---

<div class="post-metadata">

**Author:** ![Nithin\_Devang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nithin_devang/32/25023_2.png) [@Nithin\_Devang](https://discuss.elastic.co/u/Nithin_Devang)\
**Post date:** [August 7, 2017, 3:51pm UTC](https://discuss.elastic.co/t/custom-y-axis/96000/5 "2017-08-07T15:51:25Z")

</div>

There is no time field for that data, This is just x and y. Here is a snapshot of the data.

 ![Screenshot from 2017-08-07 10-50-47](https://us1.discourse-cdn.com/elastic/original/3X/2/8/28e8744564bf43a69ad0d2fb176f58e4e66f2e4f.png)

---

<div class="post-metadata">

**Author:** ![Stacey\_Gammon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stacey_gammon/32/14025_2.png) [@Stacey\_Gammon](https://discuss.elastic.co/u/Stacey_Gammon)\
**Post date:** [August 7, 2017, 3:58pm UTC](https://discuss.elastic.co/t/custom-y-axis/96000/6 "2017-08-07T15:58:11Z")

</div>

Hmmm, if there are no timestamps in your index, I'm surprised the time range is showing up in the upper right corner of Visualize.

Can you post a screenshot of your `accel*` index?

Here is how one of my time based indexes looks:

 ![46 AM](https://us1.discourse-cdn.com/elastic/original/3X/e/5/e57460ab8589503c339d4d9fc7295560394811b8.png)

and here is the non time based index:

![41 AM](https://us1.discourse-cdn.com/elastic/original/3X/c/2/c22469cb9dd2f474def2011de74095fd5ea014e1.png)

Notice the lack of `Time Filter field name`

You can see when I create that visualization, I don't see that time picker:

![30 AM](https://us1.discourse-cdn.com/elastic/original/3X/2/e/2ea9ed93e1ae54e266b1ff681e07925f8944c4c6.png)

What version of Kibana are you running?

---

<div class="post-metadata">

**Author:** ![Nithin\_Devang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nithin_devang/32/25023_2.png) [@Nithin\_Devang](https://discuss.elastic.co/u/Nithin_Devang)\
**Post date:** [August 7, 2017, 4:00pm UTC](https://discuss.elastic.co/t/custom-y-axis/96000/7 "2017-08-07T16:00:58Z")

</div>

Hi Stacey,

There are two types of document in this index. Another one has time series.

 ![Screenshot from 2017-08-07 11-00-04](https://us1.discourse-cdn.com/elastic/original/3X/4/4/446dac3e9f83bd24527ca808aea181f03b9ca83e.png)

---

<div class="post-metadata">

**Author:** ![Nithin\_Devang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nithin_devang/32/25023_2.png) [@Nithin\_Devang](https://discuss.elastic.co/u/Nithin_Devang)\
**Post date:** [August 7, 2017, 4:18pm UTC](https://discuss.elastic.co/t/custom-y-axis/96000/8 "2017-08-07T16:18:08Z")

</div>

Ok, Now I realized. I deleted everything from Kibana and moved the data without time series to new index and imported here and I was able to plot.

Then again I imported index with time data and then now it is not showing time selector anywhere (Even though it belongs to different index now).

How will I get this done now? I want both the data and I plot different visualization using both.

---

<div class="post-metadata">

**Author:** ![Stacey\_Gammon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stacey_gammon/32/14025_2.png) [@Stacey\_Gammon](https://discuss.elastic.co/u/Stacey_Gammon)\
**Post date:** [August 7, 2017, 5:29pm UTC](https://discuss.elastic.co/t/custom-y-axis/96000/9 "2017-08-07T17:29:13Z")

</div>

You won't be able to see data as long as the index you are using is marked as being time based.

Can you explain a little more about how you want to use the data together? You can create two different index patterns, one time based and one not, and create your visualizations using the different index pattern depending on which data you wish.

---

<div class="post-metadata">

**Author:** ![Nithin\_Devang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nithin_devang/32/25023_2.png) [@Nithin\_Devang](https://discuss.elastic.co/u/Nithin_Devang)\
**Post date:** [August 7, 2017, 5:55pm UTC](https://discuss.elastic.co/t/custom-y-axis/96000/10 "2017-08-07T17:55:43Z")

</div>

Hi Stacey,  
This works, Thanks 🙂

But the next question is here .. I can plot one line graph against one x and y, like x\_amplitude vs y\_amplitude. I want to plot 3 graphs here.

My data looks like this  
x: {  
freq:  
amp:  
},  
y: {  
freq:  
amp:  
},  
z: {  
freq:  
amp:  
}

I want to plot freq vs amp for each axis (x,y, and z) separately, But in same graph. Like I use split in time series.

---

<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:** [September 4, 2017, 5:55pm UTC](https://discuss.elastic.co/t/custom-y-axis/96000/11 "2017-09-04T17:55:47Z")

</div>

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