Cookies on ons.gov.uk

Cookies are small files stored on your device when you visit a website. We use some essential cookies to make this website work.

We would like to set additional cookies to remember your settings and understand how you use the site. This helps us to improve our services.

You have accepted all additional cookies. You have rejected all additional cookies. You can change your cookie preferences at any time.

Skip to main content

Digital products Diagram design

Overview

Diagrams can help support written content and make it more understandable. Although they can be a useful illustrative tool, always consider whether the user need can be met with clearly written text before using a diagram.

All diagrams that are published on the Office for National Statistics (ONS) website are created by our design team, after discussing the user need with a content designer. Further guidance on when to include diagrams in your content is available in our content style guide (opens in a new tab) 

For diagrams to be published elsewhere, email ons.design@ons.gov.uk (opens in a new tab) 

Diagram design principles

Flowcharts, process maps and illustrations should:

  • be clear and easy to understand
  • follow normal reading direction, from left to right and top to bottom
  • use simple shapes and as few different shapes as possible
  • have a clear starting point
  • not have overlapping lines
  • not rely on colour alone to convey meaning

The information should also be provided in an accessible format, such as a clear text description.

Designing diagrams

All diagrams should be designed using the ONS brand colours.

Text should be a minimum of 16-point (pt) font size, but ideally 18pt if space allows.

For flowcharts containing basic shapes and lines, internal ONS colleagues can download our diagram template from Confluence (opens in a new tab) 

To request a more responsive Figma template, email ons.design@ons.gov.uk (opens in a new tab) 

Text boxes

Boxes should use:

  • 18 pixel (px) bold font size as default, with minimum 16px
  • Padding 8px, 12px, 10px, 12px
  • 2px corner radius
If using outline style, use:
  • 2.5px stroke width
  • (if dashed) 4px dash, 6px gap and rounded cap
  • 10% tint background colour
Examples of our text boxes for diagrams, with four colour options in solid, outline and dashed outline styles
Diagram box styles

Arrows and lines

Arrows and lines should use:

  • 2.5px stroke width
  • (if dashed) 4px dash, 6px gap and rounded cap
  • Adobe Illustrator Arrow 5 arrowhead, scale 75% or Figma triangle arrow
  • 5px corner radius for line corners
  • Default colour Grey 75
Our arrow styles for use in diagrams, including straight arrows, one-bend and two-bend arrows, in solid and dashed styles
Arrow styles

Flowchart symbols

Flowcharts can use special shapes to represent different types of actions or steps in a process.

There is further guidance on how to use shapes in flowcharts on the SmartDraw website (opens in a new tab) 

Output type

Diagrams for web pages should be exported as an SVG file, to scale for different browser sizes and so that text can be read by screen readers. There is further guidance available on how to create an accessible SVG file on the CSS tricks website (opens in a new tab) 

We currently publish all images as PNG on the ONS website due to CMS constraints. Our goal is to move towards the more accessible SVG format in the future.

A vertical flowchart made of blue, green and purple boxes to show how to approach linking records from different sources.
Diagram showing the approach used to link records from the All Education Dataset for England (AEDE) and Census 2011
A vertical flowchart made of blue, green and purple boxes showing the funded occupational pension schemes that are part of the UK pension system.
Diagram showing the funded occupational pension schemes which are part of the UK pension system
A vertical flowchart showing how foreign direct investment (FDI) is measures using a top-down approach, displayed in boxes and arrows.
Diagram showing how foreign direct investment (FDI) is measured using a top-down approach
Vertical diagram showing how to create hierarchy with boxes and arrows using the Consumer Prices Index (CPI).
Diagram showing proposed aggregation structure for the Consumer Prices Index (CPI)
Horizontal diagram showing how long-term international arrivals can be identified using RAPID data over four quarters.
Diagram illustrating examples of how long-term international arrivals can be identified using RAPID data
A horizontal diagram made of blue, green and purple boxes showing the funded occupational pension schemes that are part of the UK pension system.
Diagram showing the funded occupational pension schemes that are part of the UK pension system

Help improve this page

Let us know how we could improve this page, or share your user research findings. Discuss this page on GitHub (opens in a new tab)