Copyright © 2014, SAS Institute Inc. All rights reserved. ACCESSIBILITY TIPS AND TRICKS FOR SAS...
-
Upload
dora-bradford -
Category
Documents
-
view
213 -
download
0
Transcript of Copyright © 2014, SAS Institute Inc. All rights reserved. ACCESSIBILITY TIPS AND TRICKS FOR SAS...
![Page 1: Copyright © 2014, SAS Institute Inc. All rights reserved. ACCESSIBILITY TIPS AND TRICKS FOR SAS PROGRAMMERS ED SUMMERS SENIOR MANAGER, ACCESSIBILITY.](https://reader036.fdocuments.us/reader036/viewer/2022062721/56649f225503460f94c3a8b0/html5/thumbnails/1.jpg)
Copy r ight © 2014, SAS Ins t i tu te Inc . A l l r ights reserved.
ACCESSIBILITY TIPS AND TRICKS FOR SAS PROGRAMMERS
ED SUMMERSSENIOR MANAGER, ACCESSIBILITY
![Page 2: Copyright © 2014, SAS Institute Inc. All rights reserved. ACCESSIBILITY TIPS AND TRICKS FOR SAS PROGRAMMERS ED SUMMERS SENIOR MANAGER, ACCESSIBILITY.](https://reader036.fdocuments.us/reader036/viewer/2022062721/56649f225503460f94c3a8b0/html5/thumbnails/2.jpg)
Copy r ight © 2014, SAS Ins t i tu te Inc . A l l r ights reserved.
GOAL IS WCAG 2.0 AA
• Widely accepted international standard• Defined by the World Wide Web Consortium (W3C)• Consists of 4 principles, 12 guidelines, and 61 testable success criteria• Specifies 3 levels of conformance: A, AA, and AAA
![Page 3: Copyright © 2014, SAS Institute Inc. All rights reserved. ACCESSIBILITY TIPS AND TRICKS FOR SAS PROGRAMMERS ED SUMMERS SENIOR MANAGER, ACCESSIBILITY.](https://reader036.fdocuments.us/reader036/viewer/2022062721/56649f225503460f94c3a8b0/html5/thumbnails/3.jpg)
Copy r ight © 2014, SAS Ins t i tu te Inc . A l l r ights reserved.
RECOMMENDATIONS
• Don’t use goptions accessible• Avoid PDF as your only output destination• Use ODS HTML5 or ODS EPUB• Upgrade SAS regularly
![Page 4: Copyright © 2014, SAS Institute Inc. All rights reserved. ACCESSIBILITY TIPS AND TRICKS FOR SAS PROGRAMMERS ED SUMMERS SENIOR MANAGER, ACCESSIBILITY.](https://reader036.fdocuments.us/reader036/viewer/2022062721/56649f225503460f94c3a8b0/html5/thumbnails/4.jpg)
Copy r ight © 2014, SAS Ins t i tu te Inc . A l l r ights reserved.
GENERAL BEST PRACTICES
• Specify page title• Use headings to create an outline within each page• Include table of contents in long pages• Use link text that makes sense by itself• Use simple tables with row headers where appropriate
![Page 5: Copyright © 2014, SAS Institute Inc. All rights reserved. ACCESSIBILITY TIPS AND TRICKS FOR SAS PROGRAMMERS ED SUMMERS SENIOR MANAGER, ACCESSIBILITY.](https://reader036.fdocuments.us/reader036/viewer/2022062721/56649f225503460f94c3a8b0/html5/thumbnails/5.jpg)
Copy r ight © 2014, SAS Ins t i tu te Inc . A l l r ights reserved.
%let title=Economic Indicators; ODS HTML5 file="indicators.html" (title="&title");title;ODS ESCAPECHAR="^";PROC ODSTEXT contents="";P "^{raw <h1>&title</h1>}"; run;ODS HTML5 CLOSE;
PAGE TITLE
![Page 6: Copyright © 2014, SAS Institute Inc. All rights reserved. ACCESSIBILITY TIPS AND TRICKS FOR SAS PROGRAMMERS ED SUMMERS SENIOR MANAGER, ACCESSIBILITY.](https://reader036.fdocuments.us/reader036/viewer/2022062721/56649f225503460f94c3a8b0/html5/thumbnails/6.jpg)
Copy r ight © 2014, SAS Ins t i tu te Inc . A l l r ights reserved.
Chrome browser Economic IndicatorsEconomic Indicators heading level 1Central Canada heading level 2Ontario heading level 3Quebec heading level 3
%let title=Economic Indicators; ODS HTML5 file="indicators.html" (title="&title");title;ODS ESCAPECHAR="^";PROC ODSTEXT contents="";
P "^{raw <h1>&title</h1>}";P "^{raw <h2>Central Canada</h2>}";P "^{raw <h3>Ontario</h3>}";P "^{raw <h3>Quebec</h3>}";
run;ODS HTML5 CLOSE;
HEADINGS
![Page 7: Copyright © 2014, SAS Institute Inc. All rights reserved. ACCESSIBILITY TIPS AND TRICKS FOR SAS PROGRAMMERS ED SUMMERS SENIOR MANAGER, ACCESSIBILITY.](https://reader036.fdocuments.us/reader036/viewer/2022062721/56649f225503460f94c3a8b0/html5/thumbnails/7.jpg)
Copy r ight © 2014, SAS Ins t i tu te Inc . A l l r ights reserved.
Chrome browser Economic IndicatorsEconomic Indicators heading level 1• Central Canda
• Ontario• Quebec
• East Coast• New Brunswick• Prince Edward Island• Nova Scotia• Newfoundland & Labrador
Central Canada heading level 2Ontario heading level 3Quebec heading level 3East Coast heading level 2New Brunswick headling level 3Prince Edward Island heading level 3Nova Scotia heading level 3Newfoundland & Labrador heading level 3
TABLE OF CONTENTS
![Page 8: Copyright © 2014, SAS Institute Inc. All rights reserved. ACCESSIBILITY TIPS AND TRICKS FOR SAS PROGRAMMERS ED SUMMERS SENIOR MANAGER, ACCESSIBILITY.](https://reader036.fdocuments.us/reader036/viewer/2022062721/56649f225503460f94c3a8b0/html5/thumbnails/8.jpg)
Copy r ight © 2014, SAS Ins t i tu te Inc . A l l r ights reserved.
LINK TEXT
Title;Ods escapechar=“^”;Proc odstext contents=“”;P “^{raw <a href=‘http://open.canada.ca/data/en/dataset/93e718fb-f9c7-44bb-89cd-09d9a6f0980d’ target=‘_blank’>Raw Data Source</a>}”;Run;
![Page 9: Copyright © 2014, SAS Institute Inc. All rights reserved. ACCESSIBILITY TIPS AND TRICKS FOR SAS PROGRAMMERS ED SUMMERS SENIOR MANAGER, ACCESSIBILITY.](https://reader036.fdocuments.us/reader036/viewer/2022062721/56649f225503460f94c3a8b0/html5/thumbnails/9.jpg)
Copy r ight © 2014, SAS Ins t i tu te Inc . A l l r ights reserved.
TABLES
Title “National FPPI (2012/12)”;PROC ODSTABLE data=FPPI;Column comm value;Define comm;Style=rowheader;Header=‘Index’;End;Run;Quit;
![Page 10: Copyright © 2014, SAS Institute Inc. All rights reserved. ACCESSIBILITY TIPS AND TRICKS FOR SAS PROGRAMMERS ED SUMMERS SENIOR MANAGER, ACCESSIBILITY.](https://reader036.fdocuments.us/reader036/viewer/2022062721/56649f225503460f94c3a8b0/html5/thumbnails/10.jpg)
Copy r ight © 2014, SAS Ins t i tu te Inc . A l l r ights reserved.
BEST PRACTICES FOR DATA VISUALIZATIONS
• Do not rely on color alone for meaning• Use minimum contrast (5:1)• Include brief alternative description• Include alternative presentations
![Page 11: Copyright © 2014, SAS Institute Inc. All rights reserved. ACCESSIBILITY TIPS AND TRICKS FOR SAS PROGRAMMERS ED SUMMERS SENIOR MANAGER, ACCESSIBILITY.](https://reader036.fdocuments.us/reader036/viewer/2022062721/56649f225503460f94c3a8b0/html5/thumbnails/11.jpg)
Copy r ight © 2014, SAS Ins t i tu te Inc . A l l r ights reserved.
symbol1 value=squarefilled color="#D90000" height=3;symbol2 value=dot color=blue height=3;axis1 label=(angle=90 height=2 "Height (in)" ) order=(50 to 80 by 5);axis2 label=(height=2 "Weight (lbs)");legend1 label=none value=("Female" "Male");
%let descr=Students: heights, weights, and genders;%let extLink=alternative1.html;Title “&Descr”;PROC GPLOT data=sashelp.class;plot height*weight=sex / legend=legend1 vaxis=axis1 haxis=axis2 description="&descr";run;PROC ODSTEXT contents="";P "^{raw <a href='./&extLink.' target='_blank'>Alternative presentation of &descr..</a>}";run;quit;
COLOR AND CONTRAST
![Page 12: Copyright © 2014, SAS Institute Inc. All rights reserved. ACCESSIBILITY TIPS AND TRICKS FOR SAS PROGRAMMERS ED SUMMERS SENIOR MANAGER, ACCESSIBILITY.](https://reader036.fdocuments.us/reader036/viewer/2022062721/56649f225503460f94c3a8b0/html5/thumbnails/12.jpg)
Copy r ight © 2014, SAS Ins t i tu te Inc . A l l r ights reserved.
%let descr=Students: heights, weights, and genders;title "&descr";PROC GPLOT data=sashelp.class;
plot height*weight=sex / description="&descr";run;quit;
BRIEF ALTERNATIVE DESCRIPTION
![Page 13: Copyright © 2014, SAS Institute Inc. All rights reserved. ACCESSIBILITY TIPS AND TRICKS FOR SAS PROGRAMMERS ED SUMMERS SENIOR MANAGER, ACCESSIBILITY.](https://reader036.fdocuments.us/reader036/viewer/2022062721/56649f225503460f94c3a8b0/html5/thumbnails/13.jpg)
Copy r ight © 2014, SAS Ins t i tu te Inc . A l l r ights reserved.
%let descr="Students' heights, weights, and genders";%let extLink=alternative1.html;Title “&descr”;PROC GPLOT data=sashelp.class;plot height*weight=sex /legend=legend1vaxis=axis1haxis=axis2description=&descr;run;PROC ODSTEXT contents="";P "{raw <a href='./&extLink' target='_blank'>Alternative presentation of &descr..</a>}";run;quit;
ALTERNATIVE PRESENTATION
![Page 14: Copyright © 2014, SAS Institute Inc. All rights reserved. ACCESSIBILITY TIPS AND TRICKS FOR SAS PROGRAMMERS ED SUMMERS SENIOR MANAGER, ACCESSIBILITY.](https://reader036.fdocuments.us/reader036/viewer/2022062721/56649f225503460f94c3a8b0/html5/thumbnails/14.jpg)
Copy r ight © 2014, SAS Ins t i tu te Inc . A l l r ights reserved.
PROC FORMAT;value $gender "M" = "Male" "F" = "Female";run; ODS HTML5 file="&extLink" (title="Alternative Presentation of &descr");title;ODS ESCAPECHAR="^";PROC ODSTEXT contents="";P "^{raw <h1>Alternative Presentation of &descr</h1>}";P "The scatter plot represents Students heights, weights, and genders. There are 19 students. Weights range from 50-150 pounds; Height ranges from 50-80 inches; Gender is Male or Female.";run; PROC ODSTABLE data=sashelp.class;column name sex weight height;define name;style=rowheader;end;define sex;header='Gender';format=$gender6.;end;run;quit;ODS HTML5 CLOSE;
ALTERNATIVE PRESENTATIONS, CONTINUED