the program that generated this modified chart is given below for referenceimport matplotlib pyplot as pyplot labels ('python''java''scala'' #'sizes [ only "explodethe st slice ( 'python'explode ( pyplot pie(sizesexplode=explodelabels=labelsautopct='% %%'shadow=truecounterclock=falsestartangle= pyplot show(when to use pie charts it is useful to consider what data can be/should be presented using pie chart in general pie charts are useful for displaying data that can be classified into nominal or ordinal categories nominal data is categorised according to descriptive or qualitative information such as program languagestype of carcountry of birth etc ordinal data is similar but the categories can also be rankedfor example in survey people may be asked to say whether they classed something as very poorpoorfairgoodvery good pie charts can also be used to show percentage or proportional data and usually the percentage represented by each category is provided next to the corresponding slice of pie pie charts are also typically limited to presenting data for six or less categories when there are more categories it is difficult for the eye to distinguish between the relative sizes of the different sectors and so the chart becomes difficult to interpret