Skip to content

Commit 10801fc

Browse files
Additional feedback on colours article
1 parent 0db1fe5 commit 10801fc

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

vignettes/colours.Rmd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ table_note <- paste(
2727

2828
afcharts provides colour palettes as set out by the [Government Analysis Function](https://analysisfunction.civilservice.gov.uk/policy-store/data-visualisation-colours-in-charts/).
2929

30-
These palettes have been developed to meet the [Web Content Accessibility Guidelines 2.1 for graphical objects](https://www.w3.org/WAI/WCAG21/Understanding/non-text-contrast.html). The colours in the [main palette for categorical data](#main-palette) all have at least a 3:1 colour contrast ratio with white (#ffffff), as well as with adjacent colours in the palette.
30+
These palettes have been developed to meet the [Web Content Accessibility Guidelines 2.1 for graphical objects](https://www.w3.org/WAI/WCAG21/Understanding/non-text-contrast.html). The colours in the [main palette for categorical data](#categorical-palette) all have at least a 3:1 colour contrast ratio with white (#ffffff), as well as with adjacent colours in the palette when used in the order recommended in the guidance.
3131

3232

3333
## Things to consider when using colour
3434

3535
Using afcharts colour palettes does not guarantee that your charts will be accessible.
36-
The [Government Analysis Function](https://analysisfunction.civilservice.gov.uk/policy-store/data-visualisation-colours-in-charts/) has published guidance on other steps you should take to ensure the accessible use of colour.
37-
afcharts should be used in conjunction with the advice given in these guidance documents.
36+
The [Government Analysis Function](https://analysisfunction.civilservice.gov.uk) has published [guidance](https://analysisfunction.civilservice.gov.uk/policy-store/data-visualisation-colours-in-charts/) on other steps you should take to help make the colours you use in data visualisations more accessible.
37+
afcharts should be used in conjunction with this advice.
3838

3939
The following are a few key things to consider when using colour in data visualisations:
4040

@@ -64,7 +64,7 @@ The `categorical` palette should be used with categorical data.
6464
afcharts:::colour_table(afcharts::af_colour_palettes$categorical)
6565
```
6666

67-
The `categorical2` palette should be used if only two colours are required as the dark blue and orange colours have the best colour contrast with each other.
67+
The `categorical2` palette should be used if only two colours are required as the dark blue and orange colours have the greatest colour contrast with each other.
6868
If only two colours are required the `categorical` family is requested, `categorical2` will be used instead.
6969

7070
`r table_note`
@@ -84,7 +84,7 @@ The `sequential` colour palette should be used for data where the order has some
8484
afcharts:::colour_table(afcharts::af_colour_palettes$sequential)
8585
```
8686

87-
As this palette is restricted to tints of one colour, there are issues with colour contrast.
87+
As this palette is restricted to tints of one colour, colour contrast is not optimal.
8888
Follow the [advice for using the sequential palette](https://analysisfunction.civilservice.gov.uk/policy-store/data-visualisation-colours-in-charts/#section-6) in the Government Analysis Function colour guidance when using this palette.
8989

9090

@@ -113,7 +113,7 @@ An example of how to use an alternative colour palette is provided in the [cookb
113113
However, if you use a different palette regularly and feel it would be useful for this to be added to afcharts, please make a suggestion as per the [contributing guidance](https://best-practice-and-impact.github.io/afcharts/CONTRIBUTING.html).
114114

115115

116-
## Viewing Palettes in R
116+
## Viewing palettes in R
117117

118118
Names and hex codes for available colours and palettes can be viewed by running the following code:
119119

0 commit comments

Comments
 (0)