SUPPORT / SAMPLES & SAS NOTES
 

Support

Sample 49697: Add a table beneath a graph with the Graph Template Language (GTL)

DetailsCodeResultsAboutRate It
The sample code on the Full Code tab illustrates how to use the Graph Template Language (GTL) to add a table beneath a graph. The code defines a cell for the graph and a separate cell for a table beneath the graph within a LAYOUT LATTICE block. The ROWWEIGHTS= option in the LAYOUT LATTICE statement defines the size of the cells. The GROUP= option in the BARCHART statement is assigned the midpoint variable so that each bar is a different color. Specifying DISPLAY=(LABEL) in the XAXISOPTS parameter in the second LAYOUT OVERLAY statement suppresses the X-axis values and tick marks on the block plot.


These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.