Presentation is loading. Please wait.

Presentation is loading. Please wait.

Copyright © 2014, SAS Institute Inc. All rights reserved. ACCESSIBILITY TIPS AND TRICKS FOR SAS PROGRAMMERS ED SUMMERS SENIOR MANAGER, ACCESSIBILITY.

Similar presentations


Presentation on theme: "Copyright © 2014, SAS Institute Inc. All rights reserved. ACCESSIBILITY TIPS AND TRICKS FOR SAS PROGRAMMERS ED SUMMERS SENIOR MANAGER, ACCESSIBILITY."— Presentation transcript:

1 Copyright © 2014, SAS Institute Inc. All rights reserved. ACCESSIBILITY TIPS AND TRICKS FOR SAS PROGRAMMERS ED SUMMERS SENIOR MANAGER, ACCESSIBILITY

2 Copyright © 2014, SAS Institute Inc. All rights 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

3 Copyright © 2014, SAS Institute Inc. All rights reserved. RECOMMENDATIONS Don’t use goptions accessible Avoid PDF as your only output destination Use ODS HTML5 or ODS EPUB Upgrade SAS regularly

4 Copyright © 2014, SAS Institute Inc. All rights 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

5 Copyright © 2014, SAS Institute Inc. All rights reserved. %let title=Economic Indicators; ODS HTML5 file="indicators.html" (title="&title"); title; ODS ESCAPECHAR="^"; PROC ODSTEXT contents=""; P "^{raw &title }"; run; ODS HTML5 CLOSE; PAGE TITLE

6 Copyright © 2014, SAS Institute Inc. All rights reserved. Chrome browser Economic Indicators Economic Indicators heading level 1 Central Canada heading level 2 Ontario heading level 3 Quebec heading level 3 %let title=Economic Indicators; ODS HTML5 file="indicators.html" (title="&title"); title; ODS ESCAPECHAR="^"; PROC ODSTEXT contents=""; P "^{raw &title }"; P "^{raw Central Canada }"; P "^{raw Ontario }"; P "^{raw Quebec }"; run; ODS HTML5 CLOSE; HEADINGS

7 Copyright © 2014, SAS Institute Inc. All rights reserved. Chrome browser Economic Indicators Economic Indicators heading level 1 Central Canda Ontario Quebec East Coast New Brunswick Prince Edward Island Nova Scotia Newfoundland & Labrador Central Canada heading level 2 Ontario heading level 3 Quebec heading level 3 East Coast heading level 2 New Brunswick headling level 3 Prince Edward Island heading level 3 Nova Scotia heading level 3 Newfoundland & Labrador heading level 3 TABLE OF CONTENTS

8 Copyright © 2014, SAS Institute Inc. All rights reserved. LINK TEXT Title; Ods escapechar=“^”; Proc odstext contents=“”; P “^{raw Raw Data Source }”; Run;

9 Copyright © 2014, SAS Institute Inc. All rights reserved. TABLES Title “National FPPI (2012/12)”; PROC ODSTABLE data=FPPI; Column comm value; Define comm; Style=rowheader; Header=‘Index’; End; Run; Quit;

10 Copyright © 2014, SAS Institute Inc. All rights 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

11 Copyright © 2014, SAS Institute Inc. All rights 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 Alternative presentation of &descr.. }"; run; quit; COLOR AND CONTRAST

12 Copyright © 2014, SAS Institute Inc. All rights 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

13 Copyright © 2014, SAS Institute Inc. All rights reserved. %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 Alternative presentation of &descr.. }"; run; quit; ALTERNATIVE PRESENTATION

14 Copyright © 2014, SAS Institute Inc. All rights 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 Alternative Presentation of &descr }"; 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

15 Copyright © 2014, SAS Institute Inc. All rights reserved. sas.com/accessibility accessibility@sas.com


Download ppt "Copyright © 2014, SAS Institute Inc. All rights reserved. ACCESSIBILITY TIPS AND TRICKS FOR SAS PROGRAMMERS ED SUMMERS SENIOR MANAGER, ACCESSIBILITY."

Similar presentations


Ads by Google