hmrc / design-patterns

Documenting HMRC design patterns
http://hmrc.github.io/assets-frontend/
MIT License
31 stars 4 forks source link

Horizontal Bar Chart #176

Open asier-hmrc opened 1 year ago

asier-hmrc commented 1 year ago

Name of component or pattern

Horizontal bar chart

Name of your service

Annual Tax Summary (ATS) -- within Personal Tax Account

Overview

The pattern helps sighted users understand quantitative data by adding a complementary visualisation layer of information.

View screenshot to proposed pattern

Code snippet

HTML

      <div class="govuk-summary-list__row content">
        <dt id="Health" class="govuk-summary-list__key">Health
          <span>&nbsp;(21.9%)</span>
        </dt>
        <dd class="govuk-summary-list__value">£1,241</dd>
      </div>
      <div aria-hidden="true">
        <dt class="graph-green-bar" style="width:21.9%;"></dt>
        <dd class="graph-grey-bar"></dd>
      </div>

CSS
    .graph-green-bar {
    border-bottom: 10px solid #28a197;
    }

    .graph-grey-bar {
    border-top: 2px solid #b1b4b6;
    }

Is it useful and unique?

Usefulness

This pattern aims to integrate a bar chart into existing GOV.UK Table/DL-type layout.

Numerical data in tabular format provides detail and accuracy to information, but it can be cognitively demanding specially to non-expert users. Numerical information alone involves a degree of mental mathematical calculation to be able to interpret and evaluate.

The bar chart helps users evaluate and compare quantities intuitively. It adds an additional dimension to numerical data that helps grasp the whole and get to the gist of the information.

The proposed pattern offers two complementary modes of reading in a single layout -- table and graph. One mode supplements the other without interfering with each other. The user is able to access both separately or in combination, depending on their needs and cognitive preference.

Examples of possible useful applications:

Uniqueness

It is unique in GDS as there is no exiting component that graphically communicates quantitative data.

Assistive technology

The bars assist sighted users only. The bars are 'visually-hidden' and not described by screen-readers. The data is universally accessible via the content.

Other components or patterns you've tried

There are no existing pattern/components. The previous existing live implementation of these bar charts were too cumbersome and distracting for reading the data -- especially in small screen devices.

View screenshot of mobile views of previous implementation versus proposed pattern.

Reuse of existing GDS component

Research on this pattern

UR sessions on ATS service with 6 participants. October 2022

External literature research on bar charts comprehension

Review of Graph Comprehension Research: Implications for Instruction. Shah and Hoeffner, 2002. Educational Psychology Review, Vol. 14, No. 1, March 2002. PDF

Jon-Rowe-HMRC commented 1 year ago

Thanks Asier. This is now on our backlog, and we'll prioritise it against our other backlog items. Best, Jon.

asier-hmrc commented 1 year ago

Thanks Jon :)

Asier de Quadra | Interaction Designer @asier.dequadra CDIO - Digital Delivery Centre Newcastle | Room BP9001 | Benton Park View | Newcastle Upon Tyne | NE99 1ZZ

On Mon, 14 Nov 2022 at 09:14, Jon-Rowe-HMRC @.***> wrote:

Thanks Asier. This is now on our backlog, and we'll prioritise it against our other backlog items. Best, Jon.

— Reply to this email directly, view it on GitHub https://github.com/hmrc/design-patterns/issues/176#issuecomment-1313347557, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJA7JXQSRGL7KCZFCNH77PDWIH7HBANCNFSM6AAAAAAR5YLHZA . You are receiving this because you authored the thread.Message ID: @.***>

asier-hmrc commented 1 year ago

Hi Jon, is there any progress with this pattern? It has been over 7 months since I submitted it and it is not in the backlog yet! Anything holding it back?

Jon-Rowe-HMRC commented 1 year ago

Hi Asier,

It's been on our private team backlog. It can only be on our public pattern backlog if our working group votes for it be added. But this isn't the holdup.

There's 3 things delaying it:

You could try to publish it via GDS, who have a much larger team and if published cross-gov that would be a better outcome.

J

asier-hmrc commented 1 year ago

Well, I am so glad I've asked about it now and not years later. I suggest those three bullet points are communicated on submission, or even better if they are published up front in the HMRC patterns webpage. I will now look into submitting to GDS.

Jon-Rowe-HMRC commented 1 year ago

Maybe this GDS thread would be the best to add to https://github.com/alphagov/govuk-design-system-backlog/issues/16

It's been on their backlog for 5 years, so more posts there would probably help prioritise the pattern. There has been some recent activity.

asier-hmrc commented 1 month ago

There are two new live implementations of the proposed bar charts pattern. Both within PTA's Check your State Pension microservice.

"State Pension Summary" page image (95)

"Selected gaps" page image

Related UR findings will follow shortly this week.