FOCUS AREAS

508 GRAPHS

ACCESSIBLE Graphics Option

Implementation Details

Example Code

508 INFO

ODS Support

SAS Accessibility Statement

SAS/GRAPH 508 Graphs

Example Code: ACCESSIBLE Graphics Option




/* To generate accessibility information in
   SAS 9.1.3 and later, use the ACCESSIBLE
   graphics option with ODS and one of the
   ActiveX- or Java-based device drivers.
   This example creates a bar chart and uses
   the ACCESSIBLE option with the ACTIVEX
   device driver.  */

/* The next line is the only one you have to change */
filename path 'specify-path-to-your-web-server';

/* Open HTML destination and assign file name.
 *--------------------------------------------------*/
ods html path=path file="barchart.html";

/* Assign graphics options.
 *--------------------------------------------------*/
goptions reset=all accessible device=activex
   ftext="Arial"
   xpixels= 480
   ypixels= 360
   gunit=pct
   ;
/* Assign a title.
 *--------------------------------------------------*/
title1 h=6 "Bar Chart of Class Data";

/* Create a bar chart.
 *--------------------------------------------------*/
proc gchart data=sashelp.class;
   vbar age/
   sumvar=height type=mean discrete
   name='barchart';
run;quit;

/* Close the HTML destination.
 *--------------------------------------------------*/
ods html close;