Sum of all ratings to another rating Bar

Hello! Thank you for the code.

I have an question:

Have an way to sum the ratings like on a Host Review: Price, Service, Space, Trafic.. Then sum and divide by 4 in this case to have a rating overall bar?

Thank you