# Combine min and max aggregations in a line graph

**URL:** <https://discuss.elastic.co/t/combine-min-and-max-aggregations-in-a-line-graph/129961>\
**Category:** Kibana\
**Created:** [April 29, 2018, 2:43pm UTC](https://discuss.elastic.co/t/combine-min-and-max-aggregations-in-a-line-graph/129961 "2018-04-29T14:43:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![spynxo](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@spynxo](https://discuss.elastic.co/u/spynxo)\
**Post date:** [April 29, 2018, 2:43pm UTC](https://discuss.elastic.co/t/combine-min-and-max-aggregations-in-a-line-graph/129961/1 "2018-04-29T14:43:32Z")

</div>

Hello,

Is there a way to combine the min and max aggregations in a line graph. I would like to see a single line with the results of both the min and max aggregations.

Thanks!

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [April 30, 2018, 3:45pm UTC](https://discuss.elastic.co/t/combine-min-and-max-aggregations-in-a-line-graph/129961/2 "2018-04-30T15:45:56Z")

</div>

Hi,  
Can you please clarify more things here ...if you want two lines, one for min and one for max, you can do sum aggregation (just add two metrics) .What are you looking for the X and Y values to be?

I was able to create a bar chart using the data you provided, but not sure this is what you're looking for.

 ![00](https://us1.discourse-cdn.com/elastic/original/2X/1/11df4d914ba8744dbae81add006f8b2fc39cefaf.png)

Thanks  
Rashmi

---

<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:** [May 28, 2018, 3:45pm UTC](https://discuss.elastic.co/t/combine-min-and-max-aggregations-in-a-line-graph/129961/3 "2018-05-28T15:45:57Z")

</div>

Closed on May 28, 2018, 3:45pm UTC

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