FOCUS AREAS

508 GRAPHS

ACCESSIBLE Graphics Option

Implementation Details

Example Code

508 INFO

ODS Support

SAS Accessibility Statement

SAS/GRAPH 508 Graphs

ACCESSIBLE Graphics Option in SAS/GRAPH

The ACCESSIBLE graphics option makes it easy for SAS/GRAPH users to comply with section 508 of the Rehabilitation Act and meet the accessibility and usability requirements of disabled users. This option is available in SAS 9.1.3 (9.1 TS1M3) or later.

Note. If you have not yet upgraded to SAS 9.1.3 or later, you can generate 508-compliant graphs with the GACCESSIBLE macro, which runs in SAS Version 8 or later. However, the ACCESSIBLE graphics option is the recommended way to generate accessible graphs.

If you specify ACCESSIBLE on the GOPTIONS statement when using ODS with the Java-based or ActiveX-based device drivers, SAS/GRAPH generates descriptive text and data that is relevant to the graph, such as the summary statistics that are represented by a bar chart.

SAS/GRAPH writes accessibility information to the graph's output HTML file and creates a graph footnote that links to that information. Neither the information nor the footnote link is visible in the output HTML file, but both are detected by an accessibility aid, such as a screen reader.

For example, the following code shows a simple GCHART statement that is used with the ACCESSIBLE graphics option and the ACTIVEX device driver:


  ods html file='mygraph.html';

  goptions accessible device=activex;

  proc gchart data=sashelp.class;
     vbar age/
     sumvar=height type=mean discrete;
  run;quit;

  ods html close;

The following figure shows a PNG image that represents the Graph for ActiveX that is generated by the statements above:


Bar chart with invisible footnote link

As the figure demonstrates, the graph's footnote link is not visible in the graph; however, an accessibility aid can find the link and follow it to the accessibility information.

When viewing the actual output file, you can display the accessibility information by pressing the Tab key and then pressing Enter.

Note. If that does not work in your browser, you can find the footnote link by dragging the mouse pointer over the lower-left area of the graph -- where a left-justified footnote would be located. When the mouse pointer changes shape, it is over the link. You can then click the link to execute a JavaScript function that displays the data that an accessibility aid would find automatically.

This next PNG image shows how the graph looks if you display the accessibility information:


Bar chart with visible accessibility data