# Visualization for multiple plots in Kibana with filters

**URL:** <https://discuss.elastic.co/t/visualization-for-multiple-plots-in-kibana-with-filters/87450>\
**Category:** Kibana\
**Created:** [May 29, 2017, 12:51pm UTC](https://discuss.elastic.co/t/visualization-for-multiple-plots-in-kibana-with-filters/87450 "2017-05-29T12:51:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ken\_Liao](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ken_liao/32/18595_2.png) [@Ken\_Liao](https://discuss.elastic.co/u/Ken_Liao)\
**Post date:** [May 29, 2017, 12:51pm UTC](https://discuss.elastic.co/t/visualization-for-multiple-plots-in-kibana-with-filters/87450/1 "2017-05-29T12:51:37Z")

</div>

I am trying to achieve the following on Kibana: I would like to plot two plots on the same graph with the following data structures

A:  
"\_source": {  
"@timestamp": "2017-05-21T05:14:36.277",  
"topic\_name": "/topic\_A",  
"data": {  
"pose":1  
}  
}

B:  
"\_source": {  
"@timestamp": "2017-05-21T05:14:36.277",  
"topic\_name": "/topic\_B",  
"data": {  
"pose":2  
}  
}  
I would like to plot A and B on the same graph. So I first perform the search on the search bar with:

topic\_name:topic\_A OR topic\_name:topic\_B

It shows one set of data which is an union of these two sets but I would like to plot A vs timestamp & B vs timestamp (two plots) on the same graph. I try to use the JSON Input feature ([JSON Input for Kibana charts](https://discuss.elastic.co/t/json-input-for-kibana-charts/290)) but couldn't get it to work. So I am wondering what are the ways to achieving this without changing the data structure. Thanks!

---

<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:** [May 30, 2017, 4:33am UTC](https://discuss.elastic.co/t/visualization-for-multiple-plots-in-kibana-with-filters/87450/2 "2017-05-30T04:33:30Z")

</div>

What are you looking for in the visualization? Are you interested in comparing `data.pose` for each topic\_name? If so, you can split the chart on the significant terms for `topic_name`, charting pose. Or, it's possible to do with Timelion and include both points.

---

<div class="post-metadata">

**Author:** ![Ken\_Liao](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ken_liao/32/18595_2.png) [@Ken\_Liao](https://discuss.elastic.co/u/Ken_Liao)\
**Post date:** [June 2, 2017, 10:05am UTC](https://discuss.elastic.co/t/visualization-for-multiple-plots-in-kibana-with-filters/87450/3 "2017-06-02T10:05:36Z")

</div>

> [@tsmalley](#):
>
> split the chart on the significant terms

Hi Tyler. I am trying to do a split chart (add a new x-axis) and use significant term as aggregation but then all the data got merged into one point and the x-axis is now two fields : [topic\_A, topic\_B].

 ![](https://us1.discourse-cdn.com/elastic/original/3X/6/0/60f4d0ef4e8bcac646dc671c892397a07d322da5.png)

---

<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:** [June 30, 2017, 10:05am UTC](https://discuss.elastic.co/t/visualization-for-multiple-plots-in-kibana-with-filters/87450/4 "2017-06-30T10:05:44Z")

</div>

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