# Clustered bar charts

**URL:** <https://discuss.elastic.co/t/clustered-bar-charts/119899>\
**Category:** Kibana\
**Created:** [February 15, 2018, 2:35am UTC](https://discuss.elastic.co/t/clustered-bar-charts/119899 "2018-02-15T02:35:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![GShetty](https://avatars.discourse-cdn.com/v4/letter/g/b4bc9f/32.png) [@GShetty](https://discuss.elastic.co/u/GShetty)\
**Post date:** [February 15, 2018, 2:35am UTC](https://discuss.elastic.co/t/clustered-bar-charts/119899/1 "2018-02-15T02:35:02Z")

</div>

I am trying to create a clustered bar chart to analyse the memory usage as below but unable to build it -  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/4/04bda2c23de91ddae36c44323f8ab6d880274755.png)!

Here is the input file -  
{"index":{"\_index":"DD\_9","\_id":0}}  
{"MEM": {"total":4056828, "used":3097068,"free":959760}, "CPU": {"CPU1":2.2, "CPU2":5.2},"time": "2018-02-14T28:25:43.511Z"}  
{"index":{"\_index":"DD\_9","\_id":1}}  
{"MEM": {"total":4056828, "used":3097068,"free":959760}, "CPU": {"CPU1":3.2, "CPU2":4.2},"time": "2018-02-15T18:25:43.511Z"}

Can someone please help me here.  
Thank you in advance.

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [February 16, 2018, 5:23pm UTC](https://discuss.elastic.co/t/clustered-bar-charts/119899/2 "2018-02-16T17:23:55Z")

</div>

Looks to me like you could create a bar chart with sum(total), sum(used), and sum(free) and split by a date histogram with a daily interval.

---

<div class="post-metadata">

**Author:** ![GShetty](https://avatars.discourse-cdn.com/v4/letter/g/b4bc9f/32.png) [@GShetty](https://discuss.elastic.co/u/GShetty)\
**Post date:** [March 6, 2018, 11:20pm UTC](https://discuss.elastic.co/t/clustered-bar-charts/119899/3 "2018-03-06T23:20:46Z")

</div>

@lukas Thank you for helping me out here 🙂

---

<div class="post-metadata">

**Author:** ![GShetty](https://avatars.discourse-cdn.com/v4/letter/g/b4bc9f/32.png) [@GShetty](https://discuss.elastic.co/u/GShetty)\
**Post date:** [March 7, 2018, 12:18am UTC](https://discuss.elastic.co/t/clustered-bar-charts/119899/4 "2018-03-07T00:18:36Z")

</div>

@lukas

I tried creating the bar chart sum(....Load\_1) and sum(...Load\_2) in Y axis and split by date histogram with second internal. But I couldn't get the clustered bar chart in Kibana .

Please let me know if I am missing something here.  
Here is the chart and sample data

chart -

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

Sample data -  
{"index":{"\_id":"20180306233001"}}  
{"hrProcessorLoad\_1":8,"hrProcessorLoad\_2":1,"device\_id":140,"Date":"2018-03-06T23:30:01Z","customer\_id":7}  
{"index":{"\_id":"20180307000001"}}  
{"hrProcessorLoad\_1":8,"hrProcessorLoad\_2":1,"device\_id":140,"Date":"2018-03-07T00:00:01Z","customer\_id":7}

---

<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:** [April 4, 2018, 12:19am UTC](https://discuss.elastic.co/t/clustered-bar-charts/119899/5 "2018-04-04T00:19:09Z")

</div>

Closed on April 4, 2018, 12:19am UTC

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