DOCUMENTATION
  • Software
    • Software
    • SAS Viya
    • Industries
    • Solutions
    • Products
  • Learn
    • Learn
    • Training
    • Certification
    • Academics
    • Books
    • Video Tutorials
  • Support
    • Support
    • Communities
    • Documentation
    • Developers
    • Support & Services
    • User Groups
  • About Us
    • About Us
    • Why SAS?
    • Company
    • Careers
    • Newsroom
    • Events
    • Contact Us
  • Explore
    • Explore
    • Try & Buy
    • Why SAS?
    • Customer Stories
    • Partners
    • Consulting
  • Software
  • SAS Viya
  • Industries
  • Solutions
  • Products
  • Learn
  • Training
  • Certification
  • Academics
  • Books
  • Video Tutorials
  • Support
  • Communities
  • Documentation
  • Developers
  • Support & Services
  • User Groups
  • About Us
  • Why SAS?
  • Company
  • Careers
  • Newsroom
  • Events
  • Contact Us
  • Explore
  • Try & Buy
  • Why SAS?
  • Customer Stories
  • Partners
  • Consulting
  • Contact Us
Sign In

Create Profile

My SAS

Get access to My SAS, trials, communities and more.

SAS Sites

sas.com
Support
Blogs
Communities
Developer
Curiosity
Videos

Documentation

Learn
Brand
PartnerNet
Merchandise
SAS® Help Center
SAS® Viya® Platform Programming Documentation
2026.09
|PDF 
Feedback
 
  • Welcome to SAS Programming Documentation
  • What's New
  • Learning SAS Viya Platform Programming
  • Syntax Quick Links
  • Python Programming
  • Advanced Analytics
  • Data Access
  • Cloud Analytic Services
  • SAS Language Reference
  • Migrating to UTF-8
  • Example Data Sets
  • SAS Code Debugging
  • Output and Graphics
    • Accessible Output
    • Universal Printing
    • Output Delivery System (ODS)
    • SAS Platform Graphing: Getting Started
    • ODS Graphics Suite
      • SAS ODS Graphics Procedures
      • SAS Graph Template Language
        • SAS Graph Template Language: Reference
        • SAS Graph Template Language: User’s Guide
    • SAS/GRAPH
    • SAS/GRAPH and Base SAS: Mapping Reference
  • In-Database Processing
  • Security and Administration
  • SAS Servers
  • Using the batch Plug-In for the SAS Viya CLI
  • Accessibility on the SAS Viya Platform
  • SAS Data Quality
  • SAS Job Execution Web Application Doc Link
  • SAS Job Execution Web Application
  • SAS Data and AI Studio
  • SAS Visual Analytics
  • SAS Viya Platform: Administration
  • SAS Viya Platform Operations
  • Other Resources
SAS Graph Template Language: Reference
 

SAS® Graph Template Language: Reference

Syntax Conventions Used in this Document
Fundamentals
About the Graph Template Language
Creating Graphs Using GTL: the Basics
Output
Programming Resources
Graph Block
Graph Block Statements
Layout Statements
Summary of Layout Statements
Layout Statement Dictionary
Plot Statements
Key Concepts for Using Plots
Plot Statement Dictionary
Plot Axes
Axis Features in Layouts
Layout Axis Option Dictionary
Legend Statements
Legend Statement Dictionary
Text Statements
Managing Text Items
Text Statement Dictionary
Custom Marker Definition Statements
Custom Marker Definition Statements
Draw Statements
Key Concepts for Using Draw Statements
Draw Statement Dictionary
GTL Annotation Facility
About the GTL Annotation Facility
The ANNOTATE Statement
Attribute Maps
Key Concepts for Using Attribute Maps
Discrete Attribute Map Statements
Range Attribute Map Statements
Run-Time Programming Features
Dynamic Variables and Macro Variables
Expressions
Functions
Conditional Logic
Appendixes
ODS GRAPHICS Statement
Reserved Keywords and Unicode Values
Display Attributes
Format Support in ODS Graphics
Generalized Macro for BOXPLOTPARM Data
Memory Management for ODS Graphics
Last updated: August 17, 2026
Privacy Statement Terms of Use 
Copyright © SAS Institute Inc. All Rights Reserved