[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-695836-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-695836-en":130,"doc-similar-695836":162},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","sas5300-2016-annotating-the-sas-ods-graphics-way-dan-heath","SAS5300-2016 - Annotating the SAS ODS Graphics Way! - Dan Heath","","The document presents an annotation facility for SAS ODS Graphics (SG) procedures introduced in SAS 9.3 and extended in SAS 9.4 to the Graph Template Language (GTL). It explains GTL annotation capabilities, including unique features such as multiple annotation sets in a single graph and binding annotations to specific graph cells. It also reviews shared concepts between SG and GTL and demonstrates how to structure annotation using drawing spaces, units, and template statements across single- and multi-cell layouts.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/sas5300-2016-annotating-the-sas-ods-graphics-way-dan-heath/695836/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/sas5300-2016-annotating-the-sas-ods-graphics-way-dan-heath/695836.png","ImageObject",300,407,{"name":42,"@type":43},"pop out","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-23","2026-11-11",true,{"@type":52,"interactionType":53,"userInteractionCount":30},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What new annotation capability does GTL provide in SAS 9.4 compared with SG procedures?","Question",{"text":62,"@type":63},"SAS 9.4 enables annotation support in the Graph Template Language (GTL). GTL offers unique features such as using multiple annotation sets in the same graph and binding annotations to particular cells.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"Why are “drawing spaces” important before creating annotations?",{"text":67,"@type":63},"Annotations rely on drawing areas within a graph. Understanding drawing spaces is essential because GTL layouts can be nested, creating different wall, layout, and data spaces where annotation coordinates apply.",{"name":69,"@type":60,"acceptedAnswer":70},"How can annotation placement be controlled using units like WALLPERCENT or pixel units?",{"text":71,"@type":63},"The document explains that percent and pixel units share a common origin (bottom-left). DATAVALUE origin depends on axis direction, and the annotation facility can place annotations outside normal ranges, such as using WALLPERCENT with an X value of 105% to position beyond the right edge.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},695836,1794428669,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":30,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":79,"read_time":144,"preview_page_count":33,"preview_urls":145},962090760408,"https://ap-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","SAS5300-2016  \nAnnotating the SAS® ODS Graphics Way!  \nDan Heath, SAS Institute Inc. , Cary, NC  \nABSTRACT  \nFor some users, having an annotation facility is an integral part of creating polished graphics for their work. To meet that need, we created a new annotation facility for the SAS® ODS Graphics (SG) procedures in SAS® 9.3. Now, with SAS® 9.4, the Graph Template Language (GTL) supports annotation as well! In fact, the GTL annotation facility has some unique features not available in the SG procedures, such as using multiple sets of annotation in the same graph and the ability to bind annotation to a particular cell in the graph. This presentation will cover some basic concepts of annotating that are common to both GTL and the SG procedures. Then, I will apply those concepts to demonstrate some unique abilities of GTL annotation.  \nINTRODUCTION  \nThe abilities of the ODS graphics system have grown significantly since the system was first released in SAS® 9.2. SAS development needs and customer feedback have helped ODS graphics become a feature-rich system for creating a variety of graphics used in many industries.  \nOne important feature we added was annotation support. This support was initially added to the SG procedures in SAS 9.3, and included a new keyword-based data set definition and new capabilities. I wrote a paper called, \" Now You Can Annotate Your Statistical Graphics Procedure Graphs\" (Heath, 2011), which presents the details of this functionality, along with many examples. It is interesting to note that, since that paper was written, several of the examples no longer require annotation to create them, including the following:  \n􀁸 Adding Unicode characters in tick values – You can now add Unicode characters to format definitions.  \n􀁸 Splitting of tick values – You can specify this behavior as an axis fit policy.  \n􀁸 Creating axis-aligned tables – You can now use the AXISTABLE statement to help create these displays.  \n􀁸 Using images as scatter points – You can now use the SYMBOLIMAGE statement to define animage as a marker type that can be used anywhere that a scatter marker can be used.  \nDespite the advances we continue to make in functionality, there is always a need for annotation. This is why, in SAS 9.4, we took the next step and added annotation support to the SAS® Graph Template Language (GTL) . While adding this functionality, we extended the capabilities of the annotation facility to give users the ability to draw annotations in multiple regions and data spaces within the same graph.  \nIn this paper, I want to begin by establishing a foundation of how the annotation facility works, both from an SG procedure and a GTL context. Then, I will show several examples featuring the various annotation types, focusing primarily on GTL examples.  \nDRAWING SPACES  \nBefore creating annotations, it is important to understand the concept of drawing spaces. A graph contains multiple drawing areas that can be used as a basis for drawing annotations. This is particularly true for GTL, where layouts can be nested and combined to create more complex graphs. In Figure 1 , this diagram shows the four types of drawing spaces inside of a typical single-celled graph. These types of graphs can be generated from PROC SGPLOT, or from GTL using a LAYOUT OVERLAY as your root layout.  \nThe DRAWSPACE keywords used in the data set are a combination of the drawing area and the drawing unit. All drawing areas support pixel and percentage units. The data drawing area also supports data  \nvalue units for positioning annotations using axis values. For example, the keyword for drawing an annotation in the wall area using percentage units is WALLPERCENT. These keywords can be specified in the DRAWSPACE column to apply to all coordinates of the drawing function, or they can be specified on specific drawing space columns for each coordinate of the function.  \nFigure 1. Drawing Spaces for a Single-Celled Graph  \nWhen using percent or pixel u","cbCaisTWTJHfhCzT","https://ap.wps.com/l/cbCaisTWTJHfhCzT","pdf",520171,15,"English","# Annotating the SAS ODS Graphics Way!\n## Abstract and Purpose\n## Introduction: Growth of ODS Graphics and Annotation Support\n## Drawing Spaces in SAS ODS Graphics\n## Single-Celled Graph Drawing Spaces\n## Multi-Cell Layout Drawing Spaces and ANNOTATE Binding","[{\"question\":\"What new annotation capability does GTL provide in SAS 9.4 compared with SG procedures?\",\"answer\":\"SAS 9.4 enables annotation support in the Graph Template Language (GTL). GTL offers unique features such as using multiple annotation sets in the same graph and binding annotations to particular cells.\"},{\"question\":\"Why are “drawing spaces” important before creating annotations?\",\"answer\":\"Annotations rely on drawing areas within a graph. Understanding drawing spaces is essential because GTL layouts can be nested, creating different wall, layout, and data spaces where annotation coordinates apply.\"},{\"question\":\"How can annotation placement be controlled using units like WALLPERCENT or pixel units?\",\"answer\":\"The document explains that percent and pixel units share a common origin (bottom-left). DATAVALUE origin depends on axis direction, and the annotation facility can place annotations outside normal ranges, such as using WALLPERCENT with an X value of 105% to position beyond the right edge.\"}]","SAS5300-2016 - Annotating the SAS ODS Graphics Way! - Dan Heath | PDF",38,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/47bf65f8278fa0d994bd4a860b299dd7.webp",983,1272,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/20d9845b09d46202dfa96b28910230fd.webp",982,1270,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/7ccc7429e2ce9eb7d5ba4c5db27a1f6d.webp",981,1269,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/b18e94d582123d0f722e61adf25c0c41.webp",980,1268,{"list":163,"token":11},[164,170,177,183,189,195,201,207,213,219],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":139,"category_name":29,"create_tm":169},290696,"The Little SAS Book - Fifth Edition - Contents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229903739494/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167439&Signature=d5xtAEvyTof5X05qKZwVfYDBO4I%3D","the-little-sas-book-fifth-edition-contents",1789642381,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":175,"category_name":29,"create_tm":176},389802,"Chapter 23 - Customizing the Kaplan-Meier Survival Plot","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917132954/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167439&Signature=dA3Vxt0QUyvNVqnHF8p0Jy3HpU0%3D","chapter-23-customizing-the-kaplan-meier-survival-plot",12,1790327707,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":30,"category_name":29,"create_tm":182},683096,"SAS 9.4 Universal Printing - About This Book - Contents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000020911/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167439&Signature=0FllGg2%2FHKnzrAxCVEvbt6cQ7O0%3D","sas-94-universal-printing-about-this-book-contents",1793995967,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":127,"category_name":29,"create_tm":188},82165,"Automating Just-In-Time Python Type Annotation Updating","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808717151/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167439&Signature=ZAlhAg4N%2FZANGRomWz%2FnIX4Kqdc%3D","automating-just-in-time-python-type-annotation-updating",1784178544,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":26,"category_name":29,"create_tm":194},670626,"SESUG Paper 132-2024 - Creating and Customizing High-Impact Excel Workbooks from SAS with ODS EXCEL","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988345196/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167439&Signature=kwQb27aVudhnjf7i5PlY4zO%2BUj0%3D","sesug-paper-132-2024-creating-and-customizing-high-impact-excel-workbooks-from-sas-with-ods-excel",1793570383,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":33,"category_name":29,"create_tm":200},693583,"An Introduction to SQL in SAS®","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005517124/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167439&Signature=qLXnJvjgjsa%2FroDf%2BE8JgoUCSjU%3D","an-introduction-to-sql-in-sas",1794290693,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":96,"category_name":29,"create_tm":206},695833,"Guide to WB Annotations - Version 1.5 - Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009167458/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167439&Signature=JSw5%2FQtzZlfqZRer%2BhNARN3qmQc%3D","guide-to-wb-annotations-version-15-guide",1794428626,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":30,"category_name":29,"create_tm":212},675525,"Scene-Graph ViT - End-to-End Open-Vocabulary Visual Relationship Detection","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229993343361/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167439&Signature=ZrmKFYtA8lO%2BoOBEPTSr6FGmjPU%3D","scene-graph-vit-end-to-end-open-vocabulary-visual-relationship-detection",1793773448,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":26,"category_name":29,"create_tm":218},685751,"Graph Algorithms - Graph Basics - Notion of Graphs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999690613/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167439&Signature=So4x2mF18MmzdtUKMmSRTYVTSvM%3D","graph-algorithms-graph-basics-notion-of-graphs",1794017504,{"doc_id":220,"doc_title":221,"file_type":137,"home_preview_img_url":222,"slug":223,"view_count":115,"category_name":29,"create_tm":224},510316,"Create Compelling Visualizations with Geographic Data and JMP 9 - Paper 289-2011","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229934866805/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167439&Signature=LXw33x1oXIo65ra6H%2BxPhOubixA%3D","create-compelling-visualizations-with-geographic-data-and-jmp-9-paper-289-2011",1791240433]