# How to set Yaxis/area chart in Timelion

**URL:** https://discuss.elastic.co/t/how-to-set-yaxis-area-chart-in-timelion/117663
**Category:** Kibana
**Tags:** timelion
**Created:** [January 30, 2018, 4:44pm UTC](https://discuss.elastic.co/t/how-to-set-yaxis-area-chart-in-timelion/117663 "2018-01-30T16:44:49Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![rajkamalkool6](https://avatars.discourse-cdn.com/v4/letter/r/e9c0ed/32.png) [@rajkamalkool6](https://discuss.elastic.co/u/rajkamalkool6)
#### Post date: [January 30, 2018, 4:44pm UTC](https://discuss.elastic.co/t/how-to-set-yaxis-area-chart-in-timelion/117663/1 "2018-01-30T16:44:49Z")

</div>

I have below set of log types  
|total\_threads=342|GH.CLNTCHL=40|AMN.CLNTCHL=91|UIJ.CLNTCHL=69|BHU.CLNTCHL=24|  
|total\_threads=332|GH.CLNTCHL=41|AMN.CLNTCHL=19|UIJ.CLNTCHL=69|BHU.CLNTCHL=34|  
|total\_threads=341|GH.CLNTCHL=42|AMN.CLNTCHL=89|UIJ.CLNTCHL=69|BHU.CLNTCHL=74|  
|total\_connections=123|GH.CLNTCHL=50|AMN.CLNTCHL=3|UIJ.CLNTCHL=82|BHU.CLNTCHL=61  
|total\_connections=125|GH.CLNTCHL=51|AMN.CLNTCHL=3|UIJ.CLNTCHL=48|BHU.CLNTCHL=56  
|total\_connections=126|GH.CLNTCHL=15|AMN.CLNTCHL=3|UIJ.CLNTCHL=86|BHU.CLNTCHL=66  
|total\_connections=193|GH.CLNTCHL=45|AMN.CLNTCHL=3|UIJ.CLNTCHL=18|BHU.CLNTCHL=06

I am trying to create 2 graphs one is based on`total_threads(GH.CLNTCHL wise)` and `total_connections(GH.CLNTCHL wise)`

I don't know how to set area in timelion chart or yaxis to total\_threads and total\_connectionsvalue

**Chart 1**  
`.es(q='sum:total_connections',index=logstash-v1_log,timefield='event_timestamp'),.es(index=logstash-v1_log,timefield='event_timestamp',metric=sum:GH.CLNTCHL).label('GH.CLNTCHL')`

**Chart 2**  
`.es(q='sum:total_threads',index=logstash-v1_log,timefield='event_timestamp'),.es(index=logstash-v1_log,timefield='event_timestamp',metric=sum:GH.CLNTCHL).label('GH.CLNTCHL')`

---

<div class="post-metadata">

### Author: ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)
#### Post date: [January 31, 2018, 1:54am UTC](https://discuss.elastic.co/t/how-to-set-yaxis-area-chart-in-timelion/117663/2 "2018-01-31T01:54:38Z")

</div>

> I am trying to create 2 graphs one is based ontotal\_threads(GH.CLNTCHL wise) and total\_connections(GH.CLNTCHL wise)
> 
> I don't know how to set area in timelion chart or yaxis to total\_threads and total\_connectionsvalue

I am not following what visualization you're looking to create. What is it that you would like the visualization to look like?

---

<div class="post-metadata">

### Author: ![rajkamalkool6](https://avatars.discourse-cdn.com/v4/letter/r/e9c0ed/32.png) [@rajkamalkool6](https://discuss.elastic.co/u/rajkamalkool6)
#### Post date: [January 31, 2018, 2:34am UTC](https://discuss.elastic.co/t/how-to-set-yaxis-area-chart-in-timelion/117663/3 "2018-01-31T02:34:47Z")

</div>

Can you see the yaxis in this graph I need total\_threads value should be in Y-Axis and GH.CLNTCHL should be in X-Axis

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/f/4f113400a96369c71b80d7ddbfdf63decb775aa7.png)

In this graph I need total\_connections value should be in Y-Axis and GH.CLNTCHL should be in X-Axis

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/0/d02ceeafb642d1d3dba7c29b00bed43b4f9223c1.png)

I like to achieve the sample chart which I uploaded but when I execute the query which I have mentioned above in that my y-axis is not changing both the graphs looks similar only.

---

<div class="post-metadata">

### Author: ![rajkamalkool6](https://avatars.discourse-cdn.com/v4/letter/r/e9c0ed/32.png) [@rajkamalkool6](https://discuss.elastic.co/u/rajkamalkool6)
#### Post date: [February 5, 2018, 5:48pm UTC](https://discuss.elastic.co/t/how-to-set-yaxis-area-chart-in-timelion/117663/4 "2018-02-05T17:48:33Z")

</div>

Any thoughts on this?

---

<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: [March 5, 2018, 5:48pm UTC](https://discuss.elastic.co/t/how-to-set-yaxis-area-chart-in-timelion/117663/5 "2018-03-05T17:48:54Z")

</div>

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