[6.8] How to add range to a percentage visualization

This screenshot shows the error percentages of Applications 1-6 respectively. The error percentage is calculated in this visualization by using an average function per application of all the errors. this is done by associating every error query with 1 and every non error query with 0.

After this we want to use a range function on these percentages to divide them into different groups say one less than 0.5 one greater than 0.5.

I don't think this is possible right now in Kibana, but i'll leave this open in case someone else has some insights on it.
PS: I know it's a bit more difficult, but you can look into rolling up the data with the avg aggregation and then doing another chart with a range aggregation on that rolled up data.