Abstract
Create different types of charts/graphs from spreadsheet data: column chart, bar chart, line chart, pie chart
Charts and graphs provide us with a more visual representation of one or more sets of numbers, making the interpretation of these numbers simpler and more intuitive.
The following screen shows some data that we wish to represent graphically.
![]() |
We start with the data in row 4. In creating the chart we will make use of the fact that the names of the months are in row 3.
Select B3:G4
->
![]() |
Make sure First row as label has been checked.
If you wish to insert the chart into a different worksheet, select the worksheet in the Chart result in worksheet window.
Click Next.
![]() |
Note |
|---|---|
|
If you click the Create button, Calc will make a series of choices for you. This is not a good idea since these may not be what you had in mind. |
|
![]() |
Select the appropriate chart type. In this case we have selected column.
Make sure the Rows radio button is checked. (If the data had been organised in a column, we would have needed to check the Columns radio button).
Click Next.
![]() |
Select the variant of the basic chart type. In this case we have selected normal.
If you wish to select gridlines, check the X axis and Y axis check boxes.
Click Next.
Fill in appropriate title for the chart and for the X and Y axis as shown on the following screen.
![]() |
Click Create.
![]() |
Drag the chart to the position you desire.
In the above example, we created a column chart. We could have created a number of other charts in the same way by making the appropriate choice in the Choose chart type window. Other common chart types are line, pie and bar. These are illustrated below.
|
Line chart |
Pie chart |
||
|
Bar chart |
3D Pie chart |
In the previous example, only a single data range (the rainfall) was displayed. We can display more than one data range.
The only change we really need make is to select the data labels and data when we start. In the example above:
Select B3:G5
->
Follow the process through as before.
The previous example illustrated how to add titles and labels to graphs during the creation process.
Suppose a graph had been created without labels and titles as shown in the following screen.
![]() |
There are no labels or title on this chart. The processing of adding them is quite simple.
Double click on the chart. A thick grey border will appear round the chart.
->
![]() |
Make sure the Main title, X axis and Y axis check boxes are ticked and add appropriate text as shown in the screen above.
Click OK.
The result is shown on the following screen.
![]() |
Double click on the chart.
->
Uncheck the labels and / or titles check boxes.
Double click on the chart.
->
Edit the contents of the labels and titles.
If you delete the contents of the labels or titles this will also have the effect of removing them.
As you will notice from the chart, the x-axis labels indicate the column of the data. What we would like is for the months to be displayed. These are indicated in row 3. The reason the graph in this example did not contain the x axis labels is as a result of only the data row being selected when creating the graph.
To add x axis labels:
Single click on the chart.
Right click on the chart to display a context sensitive menu.
![]() |
Select Modify data range.
Tick the First row as label check box.
Select two rows of data – the x axis labels and the data itself.
The range in the Modify chart data range dialogue will change accordingly.
![]() |
![]() |
Note |
|---|---|
|
In setting up data for creating graphs, it is important that the data labels are in the row above the data. |
|
Click Create.
There are some further related actions that can be carried out using this method.
In the above example, only horizontal gridlines are displayed. This can be changed as follows:
Double click on the chart.
->
![]() |
Edit the check boxes as desired.
By default, there is no background colour to the chart. To add colour to or change the background colour of a chart:
Double click on the chart.
Right click on the chart.
Select Chart area.
Click the Area tab.
![]() |
Select the colour for the background background.
Click OK.
When we create a line, bar or column chart, Calc assigns default colours to the different data series. It also applies default colours to the different segments of a pie chart. These default colours can be changed as follows:
->
Expand Chart.
Select Default colours.
Select the data series you wish to change.
Select the desired colour from the palette.
Click OK.
The new colours will apply to future charts you create.
Double click on the chart. This will display a thick grey border around the chart.
Double click on the data series or pie segment whose colour you wish to change.
Click on the Area tab.
Select the new colour.
![]() |
Click OK.
Once a chart has been created it can be changed to another type of chart quite simply as follows:
Double click on the chart.
Right click on the chart to display a context sensitive menu.
Select Chart type.
![]() |
Select Chart type and Variant.
Select 2D or 3D.
Click OK.
Charts can be copied and moved just like any other object.
Moving a chart within a worksheet by dragging
Position the cursor over the chart.
Hold down the left mouse button and drag the chart to its new position.
Release the left mouse button.
Moving / duplicating a chart within a worksheet using cut / copy and paste
Click on the chart.
To move: -> OR To duplicate: ->.
Select a target cell.
->.
Resizing a chart
Click on the chart.
Position the cursor over any of the eight handles.
Drag the handle by holding down the left mouse button and moving the cursor.
Release the left mouse button when the desired size has been achieved.
A resizing symbol will appear. The side handles allow you to resize the chart horizontally and the top and bottom handles vertically. Using these will cause the chart to appear flatter or longer.
The corner handles allow you to resize the chart either horizontally or vertically. By dragging these diagonally, you are able to resize a chart and keep its scaling.