# Combining 2 Line Graphs that has the same x-axis and y-axis timestamp

**URL:** <https://discuss.elastic.co/t/combining-2-line-graphs-that-has-the-same-x-axis-and-y-axis-timestamp/224924>\
**Category:** Kibana\
**Created:** [March 24, 2020, 10:43pm UTC](https://discuss.elastic.co/t/combining-2-line-graphs-that-has-the-same-x-axis-and-y-axis-timestamp/224924 "2020-03-24T22:43:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![soffonisol](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@soffonisol](https://discuss.elastic.co/u/soffonisol)\
**Post date:** [March 24, 2020, 10:43pm UTC](https://discuss.elastic.co/t/combining-2-line-graphs-that-has-the-same-x-axis-and-y-axis-timestamp/224924/1 "2020-03-24T22:43:39Z")

</div>

I was trying to consolidate two different line graphs that shows the count of response error 400 and response error 404. I was able to graph them separately with no problem. How would I combine the graphs so it shows both 400 and 404 response in the same graph with color coded line. If not possible to do with a line graph, which kinds of graph representation should I use instead?

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [March 25, 2020, 9:41am UTC](https://discuss.elastic.co/t/combining-2-line-graphs-that-has-the-same-x-axis-and-y-axis-timestamp/224924/2 "2020-03-25T09:41:22Z")

</div>

You can do this by splitting the series using the `filters` aggregation:

 ![Screenshot 2020-03-25 at 10.40.31](https://us1.discourse-cdn.com/elastic/original/3X/f/7/f7ac66de92f7584da0f07e251a52cda438a1815e.png)

---

<div class="post-metadata">

**Author:** ![soffonisol](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@soffonisol](https://discuss.elastic.co/u/soffonisol)\
**Post date:** [April 3, 2020, 1:19am UTC](https://discuss.elastic.co/t/combining-2-line-graphs-that-has-the-same-x-axis-and-y-axis-timestamp/224924/3 "2020-04-03T01:19:23Z")

</div>

Thank you so much for your help. That does help resolve my issue.

---

<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 1, 2020, 1:26am UTC](https://discuss.elastic.co/t/combining-2-line-graphs-that-has-the-same-x-axis-and-y-axis-timestamp/224924/4 "2020-05-01T01:26:30Z")

</div>

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