Accessibility in EJ2 JavaScript TreeMap control

19 Mar 20243 minutes to read

The TreeMap control follows commonly used accessibility guidelines and standards, such as ADA, Section 508, WCAG 2.2 standards, and WCAG roles.

The accessibility compliance for the TreeMap control is outlined below.

Accessibility Criteria Compatibility
WCAG 2.2 Support Intermediate
Section 508 Support Intermediate
Screen Reader Support Yes
Right-To-Left Support Yes
Color Contrast Yes
Mobile Device Support Yes
Accessibility Checker Validation Yes
Axe-core Accessibility Validation Yes
Yes - All features of the control meet the requirement.
Intermediate - Some features of the control do not meet the requirement.
No - The control does not meet the requirement.

WAI-ARIA attributes

The TreeMap control follows the WAI-ARIA patterns to meet the accessibility. The following ARIA attributes are used in the TreeMap control:

Attributes Purpose
role=region It specifies the TreeMap areas that do not support interactive functions like selection and highlight.
role=button It specifies the TreeMap areas where interactive functions such as selection and highlight are available.
aria-label Provides an accessible name for the title, subtitle, data labels, legend title, and legend item labels.

Screen reading in TreeMap

Accessibility in the TreeMap control ensures that all users, regardless of ability or disability, can use screen reading. The following TreeMap elements will be read aloud using screen reading software, such as Narrator for Windows.

Elements Description
Data labels Reads the labels displayed on leaf items of the TreeMap.
Title Reads the title in the TreeMap.
Subtitle Reads the title below the main title content in the TreeMap.
Legend title Reads the title of the legend in the TreeMap.
Legend item label Reads the label of the legend item in the TreeMap.

Ensuring accessibility

The TreeMap control’s accessibility levels are ensured through an accessibility-checker and axe-core software tools during automated testing.

The accessibility compliance of the TreeMap control is shown in the following sample. Open the sample in a new window to evaluate the accessibility of the TreeMap control with accessibility tools.

See also