# Guage/Dial Ratio of Events Success

**URL:** https://discuss.elastic.co/t/guage-dial-ratio-of-events-success/149257
**Category:** Kibana
**Created:** [September 20, 2018, 9:10am UTC](https://discuss.elastic.co/t/guage-dial-ratio-of-events-success/149257 "2018-09-20T09:10:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![cawoodm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cawoodm/32/14083_2.png) [@cawoodm](https://discuss.elastic.co/u/cawoodm)
#### Post date: [September 20, 2018, 9:10am UTC](https://discuss.elastic.co/t/guage-dial-ratio-of-events-success/149257/1 "2018-09-20T09:10:50Z")

</div>

We have a log of events which can have one of two states: COMPLETE or INCOMPLETE:  
 COMPLETE  
 COMPLETE  
 COMPLETE  
 COMPLETE  
 INCOMPLETE  
 COMPLETE  
 INCOMPLETE  
 COMPLETE

How can we create a Dial or Guage which shows the ratio of these two events as a percentage (6 COMPLETE out of 8 total = 75%).

The Dial/Guage should have the following regions:  
GREEN: COMPLETE \> 70%  
ORANGE: COMPLETE \> 50%  
RED: COMPLETE \< 50%

The Pie Chart shows the ratio nicely (e.g. 50%) but there's no way to delineate the acceptable areas:

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

---

<div class="post-metadata">

### Author: ![elastock](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elastock/32/35672_2.png) [@elastock](https://discuss.elastic.co/u/elastock)
#### Post date: [September 20, 2018, 9:27am UTC](https://discuss.elastic.co/t/guage-dial-ratio-of-events-success/149257/2 "2018-09-20T09:27:11Z")

</div>

You can do this in the visual builder .  
But it's a bit tricky

More informations in this post : [Dat post](https://discuss.elastic.co/t/doing-math-over-count-of-events/97278/20) 🙂

If you are on kibana 6.x , you can USE Vega visualization .

---

<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: [October 18, 2018, 9:27am UTC](https://discuss.elastic.co/t/guage-dial-ratio-of-events-success/149257/3 "2018-10-18T09:27:16Z")

</div>

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