ODS Graphics is easy. All you need to do is ensure that ODS Graphics is enabled and analytical procedures automatically produce graphs. ODS Graphics is extensible. You can easily create your own graphs by using procedures such as SGPLOT, SGPANEL, and SGSCATTER. ODS Graphics is customizable. You can use techniques such as advanced options, SG Annotation, template modification, attribute maps, the ODS document, and many other techniques to create customized graphs. The combination of the simple and more advanced options enable you to make a wide variety of graphs. For more information, see Basic ODS Graphics Examples and Advanced ODS Graphics Examples.
What you need to know about the graph template and data object in PROC SGPLOT
PROC SGPLOT looks at the PROC statements, it looks at the data, and it writes a template that might depend on the data. If you want to understand how the graph is created, you need to look at the PROC SGPLOT code, the graph template and data objects that it constructs, and the final graph.