# How can I create the visualization of filling a glass regarding margins and the current value

**URL:** <https://discuss.elastic.co/t/how-can-i-create-the-visualization-of-filling-a-glass-regarding-margins-and-the-current-value/255701>\
**Category:** Kibana\
**Created:** [November 17, 2020, 12:58pm UTC](https://discuss.elastic.co/t/how-can-i-create-the-visualization-of-filling-a-glass-regarding-margins-and-the-current-value/255701 "2020-11-17T12:58:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![borisllona](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/borisllona/32/79163_2.png) [@borisllona](https://discuss.elastic.co/u/borisllona)\
**Post date:** [November 17, 2020, 12:58pm UTC](https://discuss.elastic.co/t/how-can-i-create-the-visualization-of-filling-a-glass-regarding-margins-and-the-current-value/255701/1 "2020-11-17T12:58:40Z")

</div>

I need to create the visualization of filling a glass regarding margins with the current value, but I can't find any tutorial on how to do that.

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [November 19, 2020, 7:15pm UTC](https://discuss.elastic.co/t/how-can-i-create-the-visualization-of-filling-a-glass-regarding-margins-and-the-current-value/255701/2 "2020-11-19T19:15:53Z")

</div>

If you want a "gauge" visualization, Kibana already supports one. It can serve some of the same uses as a "glass filling" visualization.

As part of a Canvas dashboard you can use the [revealImage function](https://www.elastic.co/guide/en/kibana/current/canvas-function-reference.html#revealImage_fn).

Otherwise, you can try to create a custom [Vega](https://www.elastic.co/guide/en/kibana/current/vega-lite-tutorial-create-your-first-visualizations.html) visualization. I've never tried adding images to Vega, but it does support some advanced types like [bullet charts](https://vega.github.io/vega-lite/examples/facet_bullet.html)

---

<div class="post-metadata">

**Author:** ![borisllona](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/borisllona/32/79163_2.png) [@borisllona](https://discuss.elastic.co/u/borisllona)\
**Post date:** [November 20, 2020, 1:48pm UTC](https://discuss.elastic.co/t/how-can-i-create-the-visualization-of-filling-a-glass-regarding-margins-and-the-current-value/255701/3 "2020-11-20T13:48:16Z")

</div>

Perfect, thank you!

---

<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:** [December 18, 2020, 1:48pm UTC](https://discuss.elastic.co/t/how-can-i-create-the-visualization-of-filling-a-glass-regarding-margins-and-the-current-value/255701/4 "2020-12-18T13:48:28Z")

</div>

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