This topic covers choosing, creating and labelling graphs and charts.
16 Graphs and charts
Selecting the data
- contiguous data 连续数据: cells next to each other, e.g. A1:B6
- non-contiguous data 不连续数据: separate blocks, selected by holding Ctrl, e.g. A1:A6 and D1:D6
- a specified data range: the cells or ranges asked for, e.g. A1:B6, or the rows for ages 20 to 70
Choosing the chart type
| type | best for |
|---|---|
| bar / column chart | comparing separate categories, e.g. sales of each product |
| line graph 折线图 | showing change over time, e.g. temperature each month |
| pie chart 饼图 | showing parts of a whole, e.g. share of votes (percentages) |
| scatter graph | showing the relationship between two sets of numbers |

Labelling a chart
Chart title, legend 图例 (key; not needed with only one data series 数据系列), category axis 分类轴 title and labels, value axis 数值轴 title and labels (on a column chart these are the x- and y-axis; on a horizontal bar chart 条形图 they swap), data value labels; for a pie chart, sector labels, sector values and percentages.
Editing a chart
- add a second data series, e.g. males and females
- add a second value axis when the two series have very different scales, e.g. rainfall (mm) and temperature (°C)
- format numbers to a set number of decimal places or with a currency symbol
- set the axis minimum, maximum and increment (e.g. 0 to 100 in steps of 10)
- extract (pull out) a pie sector to make it stand out; change colours or fill patterns
Worked example. "Show the monthly sales of 2025 as a chart" → the data changes over time, so a line graph; title "Monthly Sales 2025", category axis "Month", value axis "Sales (USD)"; no legend, as there is one series.