Skip to content

Commit 38a8232

Browse files
add legends guidance link
1 parent 8d4dc7c commit 38a8232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vignettes/cookbook/_chart-types.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ gapminder |>
5656

5757
This line chart uses the afcharts theme and there are thin pale grey lines extending from the y axis. There are two thicker lines showing the life expectancy in the UK and China over time. The line colours are from the main Analysis Function palette - dark blue for China and orange for the UK, denoted by a legend at the bottom of the chart.
5858

59-
An example with line labels and no legend can be found in the [annotations](#annotations) section.
59+
Legends should be avoided unless absolutely necessary, as these usually rely on using colour to match labels to data. More information can be found in the Analysis Function [charts guidance](https://analysisfunction.civilservice.gov.uk/policy-store/data-visualisation-charts/#section-11). It is best practice to label lines directly, and an example of this can be found in the [annotations](#Annotations) section.
6060

6161
## Bar charts
6262

0 commit comments

Comments
 (0)