Hi, and welcome!
A couple of preliminaries. If applicable, review the homework policy. If possible, include a reproducible example, called a reprex. Finally, this community is best at providing help through posts, rather than one-on-one, because that benefits everyone.
For a starting point on pie charts, see this stackoverflow post. If you have to do a pie chart, this will help. The settled consensus, however, is that pie charts are intrinsically misleading and should be avoided.