Comparison of parts of a whole may be done by a:
pie chart
There are various ways to represent and compare the data. One of them is the pie chart. The pie chart is a pictorial representation of the data in which the whole is represented by a circle and the parts, by non-intersecting adjacent sectors.
Hence, comparison of parts of a whole may be done by a pie chart.