ACTXIMG and JAVAIMG Devices Compared to GIF, JPEG, SVG, and PNG Devices

GIF, JPEG, SVG, and PNG Devices

When you use the graphics option DEVICE=GIF, JPEG, SVG, or PNG with a SAS/GRAPH procedure, an ODS style is applied to your graph by default—that is, the GSTYLE system option is on by default. You can apply any of the ODS styles to your graph when the GSTYLE system option is on. You cannot apply an ODS style if the NOGSTYLE system option is on.
For complete information about the GSTYLE system option, see SAS System Options: Reference.
When you send your output to the ODS HTML destination, you can add data tips to your graph that are displayed when the cursor is over a portion of the image. You can also add drill-down links to other images or to other URLs. See Links in GIF, JPEG, PNG, and SVG Presentations.

ACTXIMG and JAVAIMG Devices

Like the GIF, JPEG, SVG, and PNG devices, when you use the graphics option DEVICE=ACTXIMG or JAVAIMG with a SAS/GRAPH procedure, an ODS style is applied to your graph by default. You can apply any of the ODS styles to your graph. Unlike the GIF, JPEG, SVG, and PNG devices, the ACTXIMG and JAVAIMG style is not affected by the GSTYLE and NOGSTYLE system options. (See Output From Different Devices and the GSTYLE/NOGSTYLE System Options.) An ODS style is always applied to a graph that is generated by the ACTXIMG or JAVAIMG device.
You can also add data tips to your graph (see Data Tips in ACTIVEX, ACTXIMG, JAVA, and JAVAIMG Presentations) and drill-down links to other URLs.

Output From Different Devices and the GSTYLE/NOGSTYLE System Options

The static devices all support ODS styles. However, the ACTXIMG and JAVAIMG devices are not affected by the GSTYLE|NOGSTYLE system option, so an ODS style is applied to an ACTXIMG or JAVAIMG image regardless of the setting of this system option. To demonstrate the impact of the GSTYLE and NOGSTYLE system options on the device output, here is an example that applies the Statistical style to a GIF image with the GSTYLE system option on:
options gstyle;
ods html style=statistical;
goptions reset=all device=gif;

proc gchart data=sashelp.cars;
   vbar Make;
    where MPG_Highway >= 37;
   run;
  quit;
A Bar Chart Using the GIF Device with the Statistical Style and GSTYLE System Option
GIF image of a bar chart with the gears style
The output is similar for the other devices.
Here is an example that applies the Statistical style to a GIF image with the NOGSTYLE system option on:
options nogstyle;
ods html style=statistical;
goptions reset=all device=gif;

proc gchart data=sashelp.cars;
        vbar make;
        where MPG_Highway >= 37;
run;
quit;
A Bar Chart Using the GIF Device with the Statistical Style and the NOGSTYLE System Option
GIF image of a bar chart with no style applied
Notice that STYLE=STATISTICAL is overridden by the NOGSTYLE system option and that no style is applied to the graph. The NOGSTYLE system option is valid only for the GIF, JPEG, SVG, and PNG devices. For the ACTXIMG and JAVAIMG devices, the NOGSTYLE system option has no effect. In this example, if the DEVICE=JAVAIMG or DEVICE=ACTXIMG graphics option is used, the Statistical style is applied even though the NOGSTYLE system option is on.