Page MenuHomePhabricator

Define pattern/node scheme for accessible charts
Closed, ResolvedPublic

Assigned To
Authored By
DTorsani-WMF
Sep 21 2024, 12:18 AM
Referenced Files
F57579313: Screenshot 2024-10-01 at 15.29.15.png
Oct 1 2024, 7:42 PM
F57579310: Screenshot 2024-10-01 at 15.29.08.png
Oct 1 2024, 7:42 PM
F57579307: Screenshot 2024-10-01 at 15.31.31.png
Oct 1 2024, 7:42 PM
F57579304: Screenshot 2024-10-01 at 15.30.36.png
Oct 1 2024, 7:42 PM
F57579302: Screenshot 2024-10-01 at 15.30.15.png
Oct 1 2024, 7:42 PM
F57579300: Screenshot 2024-10-01 at 15.30.05.png
Oct 1 2024, 7:42 PM
F57579297: Screenshot 2024-10-01 at 15.28.36.png
Oct 1 2024, 7:42 PM
F57579295: Screenshot 2024-10-01 at 15.28.30.png
Oct 1 2024, 7:42 PM

Description

Background

Result of spike T369863. To enable full visible accessibility, we need to implement patterns and nodes for charts.

User story

As a user with accessibility needs I want to be able to understand a chart

Requirements

  1. Patterns are created for 10 data points (bar, pie, area)
  2. Node shapes are created for 10 data points (line)

Design

Screenshot 2024-10-01 at 15.24.58.png (546×2 px, 35 KB)

  • As there is a current maximum of 10 data values in any given chart, there are 10 symbols.
  • Each symbol is intentionally sized and ordered. They should not be placed in a different order.
  • Each symbol, depending on the type of chart, is specifically sized and colored. These aspects should not be changed.
  • Refer to the demos for specific symbol, color, and sizing syntax.

Color

  • The colors of each symbol appear in the order found below, are paired with the default color scheme found in T375234
  • On charts which use a pattern, such as the Bar and Pie charts, the symbol color is the color listed below
  • On charts which use a symbol at a data point, such as the Line and Stacked area charts, the color of the symbol is the same color as the line, while the border color (which should have borderWidth: 1 is the color listed below
"#1b223d",
"#2d2212",
"#3c1a13",
"#132821",
"#142817",
"#1b223d",
"#23203b",
"#311e28",
"#2d2212",
"#27292d"

Demos

Line

Bar

Pie

Examples

Line, light mode

Screenshot 2024-10-01 at 15.28.30.png (696×1 px, 139 KB)

Line, dark mode

Screenshot 2024-10-01 at 15.28.36.png (666×1 px, 137 KB)

Bar, light mode

Screenshot 2024-10-01 at 15.30.05.png (676×1 px, 64 KB)

Bar, dark mode

Screenshot 2024-10-01 at 15.30.15.png (668×1 px, 65 KB)

Pie, light mode

Screenshot 2024-10-01 at 15.30.36.png (588×852 px, 56 KB)

Pie, dark mode

Screenshot 2024-10-01 at 15.31.31.png (568×822 px, 60 KB)

Stacked area, light mode

Screenshot 2024-10-01 at 15.29.08.png (692×1 px, 99 KB)

Stacked area, dark mode

Screenshot 2024-10-01 at 15.29.15.png (682×1 px, 98 KB)

Acceptance criteria

  • Symbols for nodes and patterns are created
  • Placeholder task is created for implementation

Event Timeline

CCiufo-WMF triaged this task as Medium priority.Sep 23 2024, 4:57 PM
CCiufo-WMF added a project: Design.
Jdlrobson raised the priority of this task from Medium to High.Sep 23 2024, 6:27 PM
CCiufo-WMF edited projects, added Charts (Sprint 7); removed Charts.
CCiufo-WMF moved this task from Incoming to Doing on the Charts (Sprint 7) board.