Problem Note 38229: Incorrect graphics output is produced when plotting two character variables with ACTIVEX and JAVA
When using PROC GPLOT with the ACTIVEX or JAVA device driver, incorrect graphics output will be produced when plotting two character variables on the PLOT statement. The ACTIVEX and JAVA device drivers do not support plotting a character variable on the vertical axis. Both device drivers only support plotting a numeric variable on the vertical axis.
When using the ACTIVEX or JAVA device driver with a PLOT statement in the following form, SAS/GRAPH® will automatically swap the two variables and plot the numeric variable on the vertical axis:
plot character-variable * numeric-variable;
However, incorrect graphics output will be created when you use a PLOT statement with the ACTIVEX or JAVA device driver where you attempt to plot two character variables on the PLOT statement of PROC GPLOT. For example:
plot character-variable * character-variable;
With the ACTIVEX device driver, the incorrect graph will display as a multi-colored bar chart with a checkerboard background. With the JAVA device driver, the incorrect graph never renders correctly in your web browser.
To circumvent the problem, either use a different device driver, such as PNG, or modify the PLOT statement of PROC GPLOT to plot a numeric variable on the vertical axis instead of a character variable.
Note that the problem above will also occur with the ACTXIMG and JAVAIMG device drivers.
Operating System and Release Information
| SAS System | SAS/GRAPH | z/OS | 9.1 TS1M0 | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M0 | |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M0 | |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M0 | |
| Microsoft Windows 2000 Advanced Server | 9.1 TS1M0 | |
| Microsoft Windows 2000 Datacenter Server | 9.1 TS1M0 | |
| Microsoft Windows 2000 Server | 9.1 TS1M0 | |
| Microsoft Windows 2000 Professional | 9.1 TS1M0 | |
| Microsoft Windows NT Workstation | 9.1 TS1M0 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M0 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M0 | |
| Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M0 | |
| Microsoft Windows XP Professional | 9.1 TS1M0 | |
| 64-bit Enabled AIX | 9.1 TS1M0 | |
| 64-bit Enabled HP-UX | 9.1 TS1M0 | |
| 64-bit Enabled Solaris | 9.1 TS1M0 | |
| HP-UX IPF | 9.1 TS1M0 | |
| Linux | 9.1 TS1M0 | |
| OpenVMS Alpha | 9.1 TS1M0 | |
| Tru64 UNIX | 9.1 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.
Incorrect graphics output is produced when plotting two character variables with ACTIVEX and JAVA.
| Type: | Problem Note |
| Priority: | medium |
| Date Modified: | 2010-02-08 10:36:53 |
| Date Created: | 2009-12-21 11:08:30 |