# How to create the similar chart

**URL:** <https://discuss.elastic.co/t/how-to-create-the-similar-chart/219162>\
**Category:** Kibana\
**Created:** [February 13, 2020, 9:08am UTC](https://discuss.elastic.co/t/how-to-create-the-similar-chart/219162 "2020-02-13T09:08:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![naveenj](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@naveenj](https://discuss.elastic.co/u/naveenj)\
**Post date:** [February 13, 2020, 9:08am UTC](https://discuss.elastic.co/t/how-to-create-the-similar-chart/219162/1 "2020-02-13T09:08:21Z")

</div>

![Screenshot from 2020-02-13 10-23-25](https://us1.discourse-cdn.com/elastic/original/3X/3/2/32874227905b48a09e99e38753333c56fcd28547.png)  
The above chat two x-axis bucket one is the barcode and another component-id. In y-axis volume and median of the volume.

 ![Screenshot from 2020-02-13 10-18-48](https://us1.discourse-cdn.com/elastic/original/3X/c/6/c69c40c77fa18f189dae51a3033b907b5a248579.png)  
I am able to draw first leave volume but not able to draw the median of the volume of the barcode.

---

<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:** [February 13, 2020, 10:29am UTC](https://discuss.elastic.co/t/how-to-create-the-similar-chart/219162/2 "2020-02-13T10:29:38Z")

</div>

You are almost there - just add a second median metric and enable the line for this one:

 ![Screenshot 2020-02-13 at 11.27.32](https://us1.discourse-cdn.com/elastic/original/3X/7/f/7f1223d5a1012c8128ab8ddf2d1ee7091339394f.png) ![Screenshot 2020-02-13 at 11.27.22](https://us1.discourse-cdn.com/elastic/original/3X/c/8/c86289c39db7cd1ffdd86e032a94a3abdcd5c740.png)  
 ![Screenshot 2020-02-13 at 11.28.33](https://us1.discourse-cdn.com/elastic/original/3X/e/1/e15c35b01f45eeee503b1321f7cefc85807d11e9.png)

it seems like your chart also has a dotted line showing the overall average. Unfortunately that's currently not possible to achieve with regular visualizations.

---

<div class="post-metadata">

**Author:** ![naveenj](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@naveenj](https://discuss.elastic.co/u/naveenj)\
**Post date:** [February 14, 2020, 3:40am UTC](https://discuss.elastic.co/t/how-to-create-the-similar-chart/219162/3 "2020-02-14T03:40:04Z")

</div>

Thanks for reply. I Added second on getting multiple lines.

 ![Screenshot from 2020-02-14 09-06-41](https://us1.discourse-cdn.com/elastic/original/3X/c/6/c6e79b1e64ede5a9799cb8bf7bef4c9722dfe048.png)  
Because i required two buckets. Can you please let me know how i get single line for median of barcode?

---

<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:** [February 14, 2020, 5:44am UTC](https://discuss.elastic.co/t/how-to-create-the-similar-chart/219162/4 "2020-02-14T05:44:00Z")

</div>

I see - when you are splitting by series you have the same problem as with the overall average - there is no way to “go up” in the aggregation tree and create a metric for the overall average without considering the split.

Do you really need this split? As the values for the percentiles are overlapping anyway you can’t see the difference between the multiple pad ids - it’s just one big blob. Wouldn’t it make more sense to show a wider range of percentiles for all pad ids?

Another solution that would also show the differences in the different pad ids ist to use a split charts as rows instead of a split series for pad Id. This will get you one chart per pad id with its own average line

---

<div class="post-metadata">

**Author:** ![naveenj](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@naveenj](https://discuss.elastic.co/u/naveenj)\
**Post date:** [February 14, 2020, 6:18am UTC](https://discuss.elastic.co/t/how-to-create-the-similar-chart/219162/5 "2020-02-14T06:18:04Z")

</div>

I have multiple barcodes and every barcode contain multiple pad ids and every pad id has volume %.  
I want show the barcodes with pad id volume % and all pad ids of bar code volume % median in chart.

---

<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 13, 2020, 6:18am UTC](https://discuss.elastic.co/t/how-to-create-the-similar-chart/219162/6 "2020-03-13T06:18:07Z")

</div>

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