Problem Note 67601: Scientific notation values are displayed unexpectedly in the legend of a graph that is created by the SGPLOT procedure
Scientific notation values might be displayed for long numeric values in the legend of a graph that is created by PROC SGPLOT.
If the data value has 6 digits or fewer (for example, id= 121006,121004,121005), the ID variable is grouped and displayed correctly.
However, if the data value has 7 or more digits (for example, id=2121006,2121004,2121005), the ID variable is incorrectly grouped as one with scientific notation (2.12E6).
Supplying a numeric format, of sufficient length, can prevent long numeric values from being written in scientific notation.
The following sample data set and syntax provide an example:
data test;
input t ds id;
datalines;
1 4 2121005
2 5 2121005
3 3 2121006
1 7 2121006
;
proc print data=test;
run;
proc sgplot data=test;
series X=t Y=ds / group=id;
format id 8.;
run;
Operating System and Release Information
| SAS System | SAS/GRAPH | z/OS | 9.4_M7 | | 9.4 TS1M7 | |
| Microsoft® Windows® for x64 | 9.4_M7 | | 9.4 TS1M7 | |
| Microsoft Windows 8 Enterprise 32-bit | 9.4_M7 | | 9.4 TS1M7 | |
| Microsoft Windows 8 Enterprise x64 | 9.4_M7 | | 9.4 TS1M7 | |
| Microsoft Windows 8 Pro 32-bit | 9.4_M7 | | 9.4 TS1M7 | |
| Microsoft Windows 8 Pro x64 | 9.4_M7 | | 9.4 TS1M7 | |
| Microsoft Windows 8.1 Enterprise 32-bit | 9.4_M7 | | 9.4 TS1M7 | |
| Microsoft Windows 8.1 Enterprise x64 | 9.4_M7 | | 9.4 TS1M7 | |
| Microsoft Windows 8.1 Pro 32-bit | 9.4_M7 | | 9.4 TS1M7 | |
| Microsoft Windows 8.1 Pro x64 | 9.4_M7 | | 9.4 TS1M7 | |
| Microsoft Windows 10 | 9.4_M7 | | 9.4 TS1M7 | |
| Microsoft Windows Server 2008 | 9.4_M7 | | 9.4 TS1M7 | |
| Microsoft Windows Server 2008 R2 | 9.4_M7 | | 9.4 TS1M7 | |
| Microsoft Windows Server 2008 for x64 | 9.4_M7 | | 9.4 TS1M7 | |
| Microsoft Windows Server 2012 Datacenter | 9.4_M7 | | 9.4 TS1M7 | |
| Microsoft Windows Server 2012 R2 Datacenter | 9.4_M7 | | 9.4 TS1M7 | |
| Microsoft Windows Server 2012 R2 Std | 9.4_M7 | | 9.4 TS1M7 | |
| Microsoft Windows Server 2012 Std | 9.4_M7 | | 9.4 TS1M7 | |
| Microsoft Windows Server 2016 | 9.4_M7 | | 9.4 TS1M7 | |
| Microsoft Windows Server 2019 | 9.4_M7 | | 9.4 TS1M7 | |
| Windows 7 Enterprise 32 bit | 9.4_M7 | | 9.4 TS1M7 | |
| Windows 7 Enterprise x64 | 9.4_M7 | | 9.4 TS1M7 | |
| Windows 7 Home Premium 32 bit | 9.4_M7 | | 9.4 TS1M7 | |
| Windows 7 Home Premium x64 | 9.4_M7 | | 9.4 TS1M7 | |
| Windows 7 Professional 32 bit | 9.4_M7 | | 9.4 TS1M7 | |
| Windows 7 Professional x64 | 9.4_M7 | | 9.4 TS1M7 | |
| Windows 7 Ultimate 32 bit | 9.4_M7 | | 9.4 TS1M7 | |
| Windows 7 Ultimate x64 | 9.4_M7 | | 9.4 TS1M7 | |
| 64-bit Enabled AIX | 9.4_M7 | | 9.4 TS1M7 | |
| 64-bit Enabled Solaris | 9.4_M7 | | 9.4 TS1M7 | |
| HP-UX IPF | 9.4_M7 | | 9.4 TS1M7 | |
| Linux for x64 | 9.4_M7 | | 9.4 TS1M7 | |
| Solaris for x64 | 9.4_M7 | | 9.4 TS1M7 | |
*
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: | low |
| Date Modified: | 2021-03-31 09:44:48 |
| Date Created: | 2021-03-14 01:51:54 |