Accessibility

Accessibility legislation means that all content published on public sector websites, including charts, must meet the level A and AA success criterion in the Web Content Accessibility Guidelines 2.1.

Resources

The Government Analysis Function has published a variety of resources for producing accessible data visualisations:

afcharts has been developed following advice in the above guidance, however, using afcharts does not guarantee accessibility. afcharts should therefore be used in conjunction with this guidance.

Accessibility of charts using afcharts

By applying theme_af to ggplot2 plots, the following best practice is followed:

afcharts provides colour palettes as set out by the Government Analysis Function Colour Guidance. These palettes have been developed to meet the Web Content Accessibility Guidelines 2.1 for graphical objects and can be applied to charts by using one of the four colour/fill functions:

More information on afcharts colours can be found at vignette("colours").

Other accessibility considerations

Using afcharts does not guarantee accessibility. The Government Analysis Function chart guidance contains detailed information on other considerations that should be made. Not all of these are repeated here, but we think the following are a good place to start: