Program 8
8.Write a Python program to plot pie chart using labels of brands of cars 'AUDI', 'BMW', 'FORD', 'TESLA', 'JAGUAR', 'MERCEDES' and sales of the cars. A Pie Chart is a circular statistical plot that can display only one series of data. The area of the chart is the total percentage of the given data. The area of slices of the pie represents the percentage of the parts of the data. The slices of pie are called wedges. The area of the wedge is determined by the length of the arc of the wedge. The area of a wedge represents the relative percentage of that part with respect to whole data. Pie charts are commonly used in business presentations like sales, operations, survey results, resources, etc as they provide a quick summary. Creating Pie Chart Matplotlib API has pie() function in its pyplot module which create a pie chart representing the data in an array. Syntax: matplotlib.pyplot.pie(data, explode=None, labels=None, colors=None, ...