alphagov / govuk-design-system

One place for service teams to find styles, components and patterns for designing government services.
https://www.gov.uk/design-system
MIT License
512 stars 232 forks source link

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

Closed nacnudus closed 3 years ago

nacnudus commented 3 years ago

https://github.com/alphagov/govuk-design-system/blob/7901b4022b318c4065592a5351ed014f9d4ee545/src/styles/colour/index.md.njk#L62

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 commented 3 years ago

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 https://github.com/alphagov/govuk-design-system/issues/1816 so the team can try fix it. I'm gonna close this issue, hope that's ok!

nacnudus commented 3 years ago

Thanks for this response, especially the link to Slack.

statshan commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

@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 commented 3 years ago

@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 commented 3 years ago

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

statshan commented 3 years ago

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

hannah.d.thomas@ons.gov.uk

statshan commented 2 years ago

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 commented 2 years ago

@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 commented 2 years ago

Great, thanks, I have done this.

From: Laurence de Bruxelles @.> Sent: 08 March 2022 16:07 To: alphagov/govuk-design-system @.> Cc: Thomas, Hannah @.>; Mention @.> Subject: Re: [alphagov/govuk-design-system] Was the GOV.UK palette designed for graphs? (#1814)

@statshanhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fstatshan&data=04%7C01%7Channah.d.thomas%40ons.gov.uk%7C3c2a7da953ab4e8a90bf08da011dae13%7C078807bfce824688bce00d811684dc46%7C0%7C0%7C637823524225785734%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=qwK44bU9WEkrcIAkLRSjEdf6KE5rEsgSK7f22NVDgFs%3D&reserved=0 that sounds great!

It might be best if you open a new issue with a feature requesthttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Falphagov%2Fgovuk-design-system%2Fissues%2Fnew%2Fchoose&data=04%7C01%7Channah.d.thomas%40ons.gov.uk%7C3c2a7da953ab4e8a90bf08da011dae13%7C078807bfce824688bce00d811684dc46%7C0%7C0%7C637823524225785734%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=StcDaFGcU9HQmeMCzBwyzOipxetYmyPTKnLW2Q15a6I%3D&reserved=0, that will make it easier for us to find your suggestion and prioritise the work to incorporate it.

- Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Falphagov%2Fgovuk-design-system%2Fissues%2F1814%23issuecomment-1061942128&data=04%7C01%7Channah.d.thomas%40ons.gov.uk%7C3c2a7da953ab4e8a90bf08da011dae13%7C078807bfce824688bce00d811684dc46%7C0%7C0%7C637823524225785734%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=VCFOUAXPwj2xMGoBulYleTMb%2BhnhsDBpy9UOk8Ru2do%3D&reserved=0, or unsubscribehttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FASRP64FNXWZTMVF57ZOJWB3U653KJANCNFSM5B56WDVQ&data=04%7C01%7Channah.d.thomas%40ons.gov.uk%7C3c2a7da953ab4e8a90bf08da011dae13%7C078807bfce824688bce00d811684dc46%7C0%7C0%7C637823524225785734%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Gp%2F%2BImlP7jf50xo%2BEKzi166q8nZUagBxOovC7vJv1rs%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7Channah.d.thomas%40ons.gov.uk%7C3c2a7da953ab4e8a90bf08da011dae13%7C078807bfce824688bce00d811684dc46%7C0%7C0%7C637823524225785734%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=2vaaCLLK5dGsbXJU7BQsOua8wVNt0g0xq75QQWqVY24%3D&reserved=0 or Androidhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7Channah.d.thomas%40ons.gov.uk%7C3c2a7da953ab4e8a90bf08da011dae13%7C078807bfce824688bce00d811684dc46%7C0%7C0%7C637823524225785734%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=h165LOXCrQMlrsmQI%2F44TSzVNjQkUnPQYmYPz0YbDbo%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.**@.>>