In: Computer Science
Session 4.1
Create a pie chart
A pie chart, sometimes called a circle chart, is a useful tool for displaying basic statistical data in the shape of a circle (each section resembles a slice of pie). Unlike in bar charts or line graphs, you can only display a single data series in a pie chart, and you can’t use zero or negative values when creating one. A negative value will display as its positive equivalent, and a zero value simply won’t appear.
Step1:
PIE CHARTS:
CUSOMIZING
The resulting pie chart lacks al the category names and it might be
helpful to include the percentage breakdown.
To get all category names
To get the percentage breakdown
LINE CHART
LINE CHARTS
The line chart is not really helpful for categorical data as
above.
The line chart is best used for numerical data that are observed
over time.
To create a line chart
The displayed dates can be reduced to whole numbers
A horiiontal axis can be added by
Create a combination chart:
1.Select the data.
2.Click the Insert tab
3.In the Charts group, click on the ‘Insert Column Chart’ icon
4.Click on Clustered Column chart. This will insert the chart in the worksheet area
5.With the Chart Selected, go to the Design tab and click on Select Data
6.In the ‘Select Data Source’ dialog box, click on Edit option (below the ‘Horizontal (Category) Axis Labels’).
7.Select years that you want to plot in the chart
8.ok
Work with chart legends
When the data appearing in a chart contains multiple dataSeries, it becomes more readable if they are shown in a legend. This helps in identifying each dataSeries/dataPoint in the chart.
When we want Legend to appear for a dataSeries, we set
showInLegend to true in that dataSeries, this makes the dataSeries
to appear in legend. This way you can choose which dataSeries to
show in legend.
By default name of series is shown in legend. To Customize the
text, you can mention legendText in dataSeries.