# Can we change .yaxis() in timelion

**URL:** https://discuss.elastic.co/t/can-we-change-yaxis-in-timelion/88280
**Category:** Kibana
**Tags:** timelion
**Created:** [June 5, 2017, 2:06pm UTC](https://discuss.elastic.co/t/can-we-change-yaxis-in-timelion/88280 "2017-06-05T14:06:13Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![shreyanshu\_pare](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@shreyanshu\_pare](https://discuss.elastic.co/u/shreyanshu_pare)
#### Post date: [June 5, 2017, 2:06pm UTC](https://discuss.elastic.co/t/can-we-change-yaxis-in-timelion/88280/1 "2017-06-05T14:06:13Z")

</div>

I have json:-  
{ExchangeName:YOBIT, CurrencyPair:ETHBTC ,MachineTime:June 5th 2017, 16:08:50.672, OrderSide:bids, Price:0.089 ,Quantity:0.002, \_id:AVx31gjeldQy5pE4euee, \_type:order, \_index:ethbtc\_order ,\_score:1}

In Timelion i want in y axis = PriceValue

is it possible ?How i will do this ?

---

<div class="post-metadata">

### Author: ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)
#### Post date: [June 5, 2017, 3:23pm UTC](https://discuss.elastic.co/t/can-we-change-yaxis-in-timelion/88280/2 "2017-06-05T15:23:38Z")

</div>

hi @shreyanshu_pare,

you'll have to specify that as a metric.

E.g.: the below query will show you the evolution of the average PriceValue over time.

```auto
.es(*, metric=avg:PriceValue)

```

I'd also recommend you go through the Timelion getting-started guide. It gives you an overview of its capabilities. [https://www.elastic.co/guide/en/kibana/current/timelion-getting-started.html](https://www.elastic.co/guide/en/kibana/current/timelion-getting-started.html)

thx,

---

<div class="post-metadata">

### Author: ![shreyanshu\_pare](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@shreyanshu\_pare](https://discuss.elastic.co/u/shreyanshu_pare)
#### Post date: [June 6, 2017, 5:18am UTC](https://discuss.elastic.co/t/can-we-change-yaxis-in-timelion/88280/3 "2017-06-06T05:18:00Z")

</div>

Thanks @thomasneirynck

---

<div class="post-metadata">

### Author: ![shreyanshu\_pare](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@shreyanshu\_pare](https://discuss.elastic.co/u/shreyanshu_pare)
#### Post date: [June 7, 2017, 7:35am UTC](https://discuss.elastic.co/t/can-we-change-yaxis-in-timelion/88280/4 "2017-06-07T07:35:54Z")

</div>

@thomasneirynck  
One question its taking avg, we want value?its not taking correct values

Actally for perticualr time if 4 values are there in price so its taking avg of 4 values and gave one value.  
But i want all the 4 values?is it possible?how we will do?

in timelion i want, there is OrderSide so there are 2 value one is asks and one is bids, so in timelion i want in yaxis price and in x-axis time and based on price we want to show orderside (two graph asks,bids). so i write one query:- (.es(index=ethbtc\_order\*,timefield=MachineTime,q='ExchangeNa‌​me:BITFINEX AND OrderSide:Asks',metric='avg:Price').label(Asks),.es(index=et‌​hbtc\_order\*,timefiel‌​d=MachineTime,q='Exc‌​hangeName:BITFINEX AND OrderSide:Bids',metric='avg:Price').label(Bids)).title(BITFI‌​NEX)

---

<div class="post-metadata">

### Author: ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)
#### Post date: [June 12, 2017, 7:54pm UTC](https://discuss.elastic.co/t/can-we-change-yaxis-in-timelion/88280/5 "2017-06-12T19:54:22Z")

</div>

hi @shreyanshu_pare

you can't show individual values of documents right now. Timelion will always aggregate by some metric for each time-stamp.

---

<div class="post-metadata">

### Author: ![shreyanshu\_pare](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@shreyanshu\_pare](https://discuss.elastic.co/u/shreyanshu_pare)
#### Post date: [June 13, 2017, 5:17am UTC](https://discuss.elastic.co/t/can-we-change-yaxis-in-timelion/88280/6 "2017-06-13T05:17:33Z")

</div>

ok @thomasneirynck, Instead of "avg" i am using "max",Now value is not changing  
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 11, 2017, 5:17am UTC](https://discuss.elastic.co/t/can-we-change-yaxis-in-timelion/88280/7 "2017-07-11T05:17:44Z")

</div>

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