# Compare histogram in vertical bars

**URL:** https://discuss.elastic.co/t/compare-histogram-in-vertical-bars/167937
**Category:** Kibana
**Created:** [February 11, 2019, 10:22pm UTC](https://discuss.elastic.co/t/compare-histogram-in-vertical-bars/167937 "2019-02-11T22:22:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![nitinpathakala](https://avatars.discourse-cdn.com/v4/letter/n/c37758/32.png) [@nitinpathakala](https://discuss.elastic.co/u/nitinpathakala)
#### Post date: [February 11, 2019, 10:22pm UTC](https://discuss.elastic.co/t/compare-histogram-in-vertical-bars/167937/1 "2019-02-11T22:22:01Z")

</div>

Hi All,

I have a vertical bar which shows the counts on y-axis and date on on x-axis and I am trying to compare the bars from previous date vs current date.Could you please suggest any idea how I can achieve that.

Regards,  
Nitin

---

<div class="post-metadata">

### Author: ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)
#### Post date: [February 18, 2019, 4:14pm UTC](https://discuss.elastic.co/t/compare-histogram-in-vertical-bars/167937/2 "2019-02-18T16:14:33Z")

</div>

Hello,

You should be able to use either vega or time series visual builder. In time series visual builder - you can offset the date by a day. So that should def help you:

 ![39%20AM%20(2)](https://us1.discourse-cdn.com/elastic/original/3X/9/f/9f64c1eb18bfedf3b8e796b855f98c76b5eb17b1.png)

Thanks,  
Bhavya

---

<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 18, 2019, 4:14pm UTC](https://discuss.elastic.co/t/compare-histogram-in-vertical-bars/167937/3 "2019-03-18T16:14:42Z")

</div>

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