Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Was the GOV.UK palette designed for graphs? #1814

Closed
nacnudus opened this issue Aug 11, 2021 · 13 comments
Closed

Was the GOV.UK palette designed for graphs? #1814

nacnudus opened this issue Aug 11, 2021 · 13 comments

Comments

@nacnudus
Copy link

Use these colours for graphs and supporting material.

The Design System says to use the GOV.UK palette for "graphs and supporting material". From reading some pull requests and issues, the palette was designed by the GOV.UK graphic design community, but subsequent discussion about the colours has been mainly (perhaps exclusively) about their use for text and components, not for graphs.

Is there more guidance available on how to use the palette for graphs? For example, some of the colours would fail the contrast requirements of WCAG on a white background. Is there guidance that points this out?

Have the particular needs of graphs been considered? For example,

  1. Graphs require palettes that support certain kinds of data, such as sequential, diverging or qualitative data.
  2. Sequential palettes should be perceptually uniform.
  3. Graphs of geographical regions require colours that contrast with each other, as well as with the background.

CC @statshan who pointed out the contrast issue.

@christopherthomasdesign
Copy link
Member

Hi, thanks for getting in touch. We didn’t design the colour palette specifically with graphs in mind – it’s for general use in any extra supporting materials teams might need. Some of which might be graphs, but also illustrations, branding and so on. So they’re not intended to have a certain amount of contrast with one another.

We don’t have any guidance on creating graphs in the GOV.UK Design System at the moment, and there’s not loads of discussion in the backlog. There’s a small community of people discussing the subject on the #data_design channel on cross-gov Slack if that helps.

I think the current content on that page is a bit misleading, so I’ve raised a new issue #1816 so the team can try fix it. I'm gonna close this issue, hope that's ok!

@nacnudus
Copy link
Author

Thanks for this response, especially the link to Slack.

@statshan
Copy link

Hiya, when you say "There’s a small community of people discussing the subject" and "there’s not loads of discussion in the backlog" - how would I go about raising it up the priorities?

There are over 17,000 people working in government analysis (so I am told by the analysis function people) - the majority of them publish on GOV.UK and it is very likely that a lot of them will create graphs quite regularly. I work in the team supporting these analysts and we consistently gets lots of queries about charts, graphs, maps etc. People are currently just making up their own guidance. They want and need a steer. How can I make the demand known?

Do you know how I could get stats on what percentage of GOV.UK publications are stats or analysis publications that likely involve several graphs?

Thanks,

Hannah

@nacnudus
Copy link
Author

Do you know how I could get stats on what percentage of GOV.UK publications are stats or analysis publications that likely involve several graphs?

@statshan The best that I think we can do immediately is a search for the "Research and statistics" content type, which returns ~40k results, but they don't necessarily include graphs. It's theoretically possible to extract all images from all PDF, docx and HTML attachments, train a model to classify them as graph/not-graph, and count them, but there are apparently terabytes of attachments. It might be a good Data Science Accelerator project if you know anyone looking for inspiration.

@lfdebrux
Copy link
Member

Hi @statshan, thanks for your message. An accessible colour palette for graphs is obviously a good thing to have, unfortunately however it is unlikely to be something our team will work on in the near to medium term for the simple reason that we have many other priorities in our backlog.

That said, if guidance and/or an accessible colour palette was contributed by the community that was useful for many teams and services and of reasonable quality, we would probably be able to do the work to incorporate that into the Design System.

That is a big ask of course. If it is something you are interested in / have the time to get involved with, we can put you in touch with a couple of different groups of people who are discussing the same problems at the moment.

@statshan
Copy link

statshan commented Aug 23, 2021

Hi @lfdebrux and thanks, it would be great to get in touch with other people discussing the same problem, we are putting some work into trying to provide more prescriptive guidance on chart colour palettes.

@lfdebrux
Copy link
Member

lfdebrux commented Aug 26, 2021

@statshan after going back to the team it looks like you are already involved in all of the groups that we are aware of, so I'm sorry for over-promising and under-delivering 😅 I think my colleague @ImranH-GDS is in contact with a colleague of yours at the GSS though so if we do hear anything else I'm sure Imran will relay it. Also @christopherthomasdesign is on our team and has looked at this question for the performance platform in the past, so I'm sure would be interested in getting involved if needed. Sorry I can't be more helpful!

@statshan
Copy link

@lfdebrux Thanks - it would be great if someone could spare a bit of time to come to a couple of meetings we're having about this? Would there be any chance of that? Thanks!

@christopherthomasdesign
Copy link
Member

Hi @statshan – I'd be happy to do that, what would be the best way for me to get involved?

@statshan
Copy link

statshan commented Sep 7, 2021

Ah that's great thanks! If you can drop me an email I can invite you to our next catch up.

[email protected]

@statshan
Copy link

statshan commented Mar 8, 2022

Hi I was wondering if I could reopen this conversation (if that is even a thing?!)

We (I work for the Analysis Function support team) have now developed colour palette guidance for charts. This includes a suggested accessible colour palette for categorical data visualised in bar charts (such as the ones you can make using GovSpeak).

It would be great if I could get this colour palette worked into the Design System.

The current colour palette used by the charts you can create with GovSpeak does not meet the colour contrast requirements for adjacent colours.

Here is a link to our colour guidance (it is currently still in draft but am hopefully for sign off by the end of this week): https://gss.civilservice.gov.uk/policy-store/data-visualisation-colours-in-charts/

Thank you,

Hannah Thomas

@lfdebrux
Copy link
Member

lfdebrux commented Mar 8, 2022

@statshan that sounds great!

It might be best if you open a new issue with a feature request, that will make it easier for us to find your suggestion and prioritise the work to incorporate it.

@statshan
Copy link

statshan commented Mar 8, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants