Influxdb query to Grafana CPU

I have Table dashboard created in grafana for CPU utilization for large number of hosts which contains max & avg value. Is it possible to create bar chart / pie chart using the data…
The result will be 0 to 1%-- number of hosts falls in this percentage utilization 1 to 5%-- ‘’ ‘’ 5 to 10% – ‘’ ‘’ it should be displayed in pie / bar chart. Anyone help me on this ?