Merge Multiple Query and show group result in pie chart

Merge Multiple Query and show group result in pie chart

i have 4 query and all query outputs are either 0 or 1 i have merge them and used groupby to merge them but i want to show custom naming for group by like as you see dashboard both showing value(count) one must be showing name fault and one must me healthy does anyone know how to achieve that.