# Bar and Lines Visualization

**URL:** <https://discuss.elastic.co/t/bar-and-lines-visualization/240184>\
**Category:** Kibana\
**Created:** [July 7, 2020, 3:19pm UTC](https://discuss.elastic.co/t/bar-and-lines-visualization/240184 "2020-07-07T15:19:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BrunoSdeMenezes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brunosdemenezes/32/46413_2.png) [@BrunoSdeMenezes](https://discuss.elastic.co/u/BrunoSdeMenezes)\
**Post date:** [July 7, 2020, 3:19pm UTC](https://discuss.elastic.co/t/bar-and-lines-visualization/240184/1 "2020-07-07T15:19:24Z")

</div>

Hello There,

I'm trying to build a chart with a bar and a line. The bar must show the actual year and the line must show last year. The x-axis must be the months. Something like that:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/e/fea199760cccf805033e27149113b07af0a4cfc9.png)

I've built a chart with two counts and tried to use the json input, but it seems not working. Both counts are showing the same results:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/c/ac15368f8389c7ac2e759cfaf0d8df2186b1fbc9.png)

Can someone say why the json input is not working? I've tried aggs, filter by terms, script inline, but it seems nothing works. (I'm using Kibana 7.8)

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:** [August 4, 2020, 3:19pm UTC](https://discuss.elastic.co/t/bar-and-lines-visualization/240184/2 "2020-08-04T15:19:38Z")

</div>

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