SUPPORT / SAMPLES & SAS NOTES
 

Support

Sample 49696: Generate side-by-side graphs with Y and Y2 axes with the Graph Template Language (GTL)

DetailsCodeResultsAboutRate It
The sample code on the Full Code tab uses the Graph Template Language (GTL) to generate side-by-side panels with Y and Y2 axes. The YAXIS=Y2 option is specified in the second SERIESPLOT statement, producing the right vertical axis. In this example, the HEADERLABELATTRS= option in the LAYOUT DATAPANEL statement specifies the style attributes to be used for the header labels.

You can also remove the legend and header borders. This is done by defining a style template with GRAPHBORDERLINES and GRAPHBACKGROUND set to white, and specifying HEADEROPAQUE=FALSE in the LAYOUT DATAPANEL statement. The STYLE= option in the ODS HTML statement points to the newly defined style template.


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.