Make a new sheet, and in this sheet put the following formula in Cell A1:
=query('Sheet1'!A:B;"select B,count(A) where A='Yes' group by B order by B desc label B '',count(A) ''";0)
I am assuming that your first sheet's name is 'Sheet1', or else replace 'Sheet1' with your sheet's name.
Now you will get the result as you can see in the screenshot below:
And now you can insert pie chart, and thus you can show the data in form of a chart.
I hope the above solution will help you, and if you need more help then please do comment below on this blog itself, I will try to help you out.