Sample 40709: Assign the tick value list with a dynamic variable
This sample illustrates how to specify the tick value list with a dynamic variable in the Graph Template Language (GTL).
When using a dynamic variable to assign a numeric list, the values need to be separated by a space, and parentheses should not be included around the dynamic variable.
See the sample code on the Full Code tab for an illustration.
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.
This sample illustrates how to specify the tick value list with a dynamic variable in the Graph Template Language (GTL).
proc template;
define statgraph regress;
dynamic ticks;
begingraph;
layout overlay /yaxisopts=(linearopts=(tickvaluelist=ticks));
barchart x=make y=msrp;
barchart x=make y=invoice / barwidth=.5 fillattrs=(color=red);
endlayout;
endgraph;
end;
run;
ods listing close;
ods html file='dynamic.html' path='.' image_dpi=100 ;
ods graphics / reset noborder width=600px height=400px
imagename='DynamicList' imagefmt=gif;
proc sgrender data=sashelp.cars template=regress;
where origin='Asia';
dynamic ticks="0 300000 600000";
run;
ods html close;
ods listing;
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.
This sample illustrates how to specify the tick value list with a dynamic variable in the Graph Template Language (GTL).
Type: | Sample |
Topic: | SAS Reference ==> Procedures ==> SGRENDER
|
Date Modified: | 2010-10-25 09:04:33 |
Date Created: | 2010-08-27 10:03:39 |
Operating System and Release Information
SAS System | SAS/GRAPH | z/OS | 9.2 TS1M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | |
Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | |
Microsoft® Windows® for x64 | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | |
Microsoft Windows XP Professional | 9.2 TS1M0 | |
Windows Vista | 9.2 TS1M0 | |
Windows Vista for x64 | 9.2 TS1M0 | |
64-bit Enabled AIX | 9.2 TS1M0 | |
64-bit Enabled HP-UX | 9.2 TS1M0 | |
64-bit Enabled Solaris | 9.2 TS1M0 | |
HP-UX IPF | 9.2 TS1M0 | |
Linux | 9.2 TS1M0 | |
Linux for x64 | 9.2 TS1M0 | |
OpenVMS on HP Integrity | 9.2 TS1M0 | |
Solaris for x64 | 9.2 TS1M0 | |