oocalc pie charts

Count occurrences of words in a column and create a pie chart from it

  1. The column should have a title in its first cell.
  2. Select the column.
  3. Data -> DataPilot -> Start.
  4. Use current selection.
  5. Window will pop up to define the data fields.
  6. There will be a button at the top with the name of the first cell in the column we selected earlier.
  7. Drag it into the ‘Row fields’.
  8. Drag it into the ‘Data fields’, click the ‘Options’ button and select count.
  9. Click the more button and set the results to go into a new sheet.
  10. You now have a data table in the new sheet which counts the words in the source selection.
  11. When the data in the source selection changes, right click the title cell of the data table and refresh.
  12. Select the part of the data table that you’d like to count and click the ‘Chart wizard’ button to create a chart.
    Or, select the data table’s title cell and click the ‘Chart wizard’ button to create a chart. This will include the total in the chart.

Creat pie chart of timesheet in the form client|hours

Insert -> Chart.

Chart Type: Pie chart.

Data Range:

Data range is $SheetName.$A1:$AX,$Sheet1.$B1:$BX, where X is the number of rows.
Data series in columns.
First column as label.

Data Series:

Data series is Column B
Data ranges is Name blank, Y-Values $Sheet1.$B1:$BX.
Rande for Name blank.
Categories $SheetName.$A1:$AX.

Done.

To show hours in the chart itself…

Right click -> edit.

Note: This next step didn’t f**king work when I tried it a few days later - ‘object properties’ just wasn’t showing in the menu. I HATE openoffice almost as much as I hate Microsoft Office!! Could have been a change introduced by an upgrade.

Right click -> object properties.

So, instead do the next three steps…

Insert data labels.
Right click on data label.
Format data labels.

Tick show value as number.
Placement: Best fit.
Other nice options are Show category, Show legend key, Separator: New Line.

Exclude rows with zero hours

Link to the client|hours column in a new sheet (see ‘Source cell range from different sheet’ above).
Select the cells.
Data -> Filter -> Standard Filter.
Column B > 0.
Use these filtered cells as the pie chart’s data source.

NOTE: The filter doesn’t automatically update when you change the source data.

Last modified: 13/04/2010 Tags: , ,

Go to top

This website is a personal resource. Nothing here is guaranteed correct or complete, so use at your own risk and try not to delete the Internet. -Stephan

Site Info

Privacy policy

Go to top