![](https://help.apple.com/assets/65E6150B6FF3556065071CF8/65E6150C60D78F13600351D8/en_GB/61e57fb81071150c7da08e52bb0d3db6.png)
Add a legend, gridlines and other markings in Numbers on iPhone
There are several types of chart markings and axis labels you can add to your charts. You can modify their look to emphasize your data, and you can style the chart title and value label text differently to make it stand out from the other text.
![A column chart showing the axis labels and chart legend.](https://help.apple.com/assets/65E6150B6FF3556065071CF8/65E6150C60D78F13600351D8/en_GB/8de4aed9bb22a8fdf722baa3e9304863.png)
Note: If you can’t edit a chart, it may be locked. To edit it, you must unlock it.
Add a legend
Tap the chart, then tap
.
Tap Chart, then turn on Legend.
If you can’t see Legend, swipe up from the bottom of the controls.
In your spreadsheet, tap the legend to select it, then do any of the following:
Change the style of the legend text: Tap Style below the Legend button, then adjust text and fill attributes.
Resize the legend: Drag the green dots around the legend.
Reposition the legend: Drag the legend to where you want it.
Modify axis lines and gridlines
Axis lines define the edge of the chart, sometimes also marking the zero value, like an inner border. Evenly spaced gridlines cross the chart and provide a visual reference for large increments in the values. You can specify whether to show chart axis lines and gridlines and modify their look.
Tap the chart, then tap
.
Tap Style, tap Gridlines, then do any of the following:
Set the axis line type: Tap Line Type, then select a solid, dashed or dotted line type.
If you’re working with a radar chart, you can also tap Radial Lines (below Category) and select a line type.
Set the axis line colour: Tap the colour well, then choose a colour.
Set the axis line width: Type a value, or tap the – or + button.
Set the number and look of major gridlines: Tap Major Gridlines for the Value or Category axis. Turn on Gridlines. Next to Major Steps, type a value or tap the – or + button to adjust. You can also define the line type, colour and width and add a shadow.
Set the number and look of minor gridlines: Tap Minor Gridlines for the Value or Category axis. Turn on Gridlines. Next to Minor Steps, type a value or tap the – or + button to adjust. You can also define the line type, colour and width and add a shadow.
Show tick marks: Tap Tick Marks, then choose whether tick marks are inside, outside or centred.
Extend radial lines (for radar charts): Turn on Extend Radial Lines.
Note: These options vary depending on the type of chart and data.
To remove gridlines, tap
, then turn off Major and/or Minor Gridlines for the Value or Category axis.
Show or remove reference lines
You can add reference lines to a chart to indicate the average, median, minimum or maximum values in the chart. Reference lines make the chart easier to comprehend at a glance and can help you compare the values in the chart to a benchmark value.
All chart types can have reference lines except stacked charts, 2-axis charts, 3D charts, pie charts, doughnut charts and radar charts. A chart can have up to five reference lines.
Tap the chart.
Tap
, then tap Chart.
Tap Add Reference Line, then tap any of the following:
Average: A line that runs through the mean value of the data
Median: A line that runs through the middle value of the data
Minimum: A line that runs through the lowest value
Maximum: A line that runs through the highest value
Custom: A line that runs through the value you enter in the Custom section
To clarify what the reference line represents, tap to turn on Show Name and Show Value.
To change the settings for a reference line, tap the name of the line, then use the controls in the panel.
You can hide, show and change the line’s name or value, change its style and colour, and add a shadow.
To remove a reference line, tap the chart, tap , tap Chart, tap the name of the reference line, then tap Remove Line.
Note: When you drag the slider on an interactive chart to view different data sets, its reference lines move.
Show or remove error bars
Error bars give you a general impression of your data’s accuracy. They’re represented as small marks whose length indicates the amount of uncertainty associated with a given data series (the data’s variability). You can add them to 2D line charts, area charts, bar and column charts, stacked bar and column charts, bubble charts and scatter charts.
![A scatter chart showing positive and negative error bars for the y-axis.](https://help.apple.com/assets/65E6150B6FF3556065071CF8/65E6150C60D78F13600351D8/en_GB/371f393600adcaed8581c4edffc99458.png)
Tap the chart, tap
, then tap Chart.
Tap Error Bars, then choose an option.
Use the controls to change the look of the error bars.
To remove error bars, tap Error Bars, then choose None.
Show or remove trendlines
Trendlines show the overall direction (or trend) of your data. Trendlines appear in bar, line, scatter, bubble, column and area charts.
![A scatter chart with a positive trendline that measures a car's miles per gallon over average speed.](https://help.apple.com/assets/65E6150B6FF3556065071CF8/65E6150C60D78F13600351D8/en_GB/e4dd1be7a2f121bbc80e8fa6b387fcfa.png)
Tap the chart, tap
, then tap Chart.
Tap Trendlines, then choose the type of line you want to add.
Use the controls to change the look of the trendline.
To remove trendlines, tap the chart, tap , tap Chart, tap Trendlines, tap Type, then choose None.