Problem Note 55210: Reference line labels might overlap in graphs produced by ODS Graphics
Reference line labels might overlap in graphs produced by ODS Graphics.
To circumvent the problem, do one of the following:
- Specify a single REFLINE statement for the SGPLOT and SGPANEL procedure, or a REFERENCELINE statement for the Graph Template Language (GTL). Point to variables that contain the reference line values and labels. For example:
proc sgplot data=sashelp.class ;
refline weight / label=name;
series x=name y=weight;
run;
- Add a REFLINE or REFERENCELINE statement that points to a variable that contains a single reference line value prior to the REFLINE or REFERENCELINE statements that contain reference line values. For example:
/* Create a variable that contains the value of one of the reference line values. */
/* Create a variable that contains the label you want associated with the reference line value. */
data lab;
refl=90;
label='90-Text - from dataset ';
run;
data comb;
set lab sashelp.class;
run;
proc sgplot data=comb ;
title "OK";
refline refl / label=label lineattrs=(color=green) labelattrs=(color=green family=Arial size=7 );
refline 121 / label='121 - Text' lineattrs=(color=red) labelattrs=(color=red family=Arial size=7 );
refline 122 / label='122 - Text' lineattrs=(color=red) labelattrs=(color=red family=Arial size=7 );
refline 123 / label='123 - Text' lineattrs=(color=red) labelattrs=(color=red family=Arial size=7 );
refline 124 / label='124 - Text' lineattrs=(color=red) labelattrs=(color=red family=Arial size=7 );
refline 125 / label='125 - Text' lineattrs=(color=red) labelattrs=(color=red family=Arial size=7 );
refline 126 / label='126 - Text' lineattrs=(color=red) labelattrs=(color=red family=Arial size=7 );
refline 127 / label='127 - Text' lineattrs=(color=red) labelattrs=(color=red family=Arial size=7 );
series x=name y=weight;
run;
Operating System and Release Information
| SAS System | Base SAS | 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 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Problem Note |
| Priority: | medium |
| Date Modified: | 2015-02-18 15:04:53 |
| Date Created: | 2015-02-12 09:14:03 |