I'm able to use "inside=sum" when I set device=activex.
However, the values don't appear and I get this warning when I switch to device=gif:
WARNING: INSIDE= and OUTSIDE= options will be ignored for HBAR charts.
How can I use "inside=sum" while using device=gif (so I can output my files as .gif)?
I create my plot using gchart and hbar/discrete.
Also, how can I increase the font size of the sum values inside the bars when I use "inside=sum"?
There's been a request in the system to add this feature for several years (S0240334).
The more customer feedback SAS receives, the more likely it is to get added,
so I encourage you to send in some official feedback indicating that you're
interested in this feature (squeaky wheel gets the oil!
I was able to get the text to show up where I wanted it. It was a little bit tricky because I'm using a stacked bar chart.
"ct" is a percentage (count/total). How do I get "ct" to show up as a percentage on my gchart?
xsys='2'; ysys='2'; hsys='3'; when='a';
if(qs in (4) and ct>0) then x=0.95;
if qs in (3) then x=0.5;
if qs in (1) then x=ct;
if qs in (2) then x=ct+0.02;
function='label'; position='4'; size=3;
I just never use GSFNAME/GSFMODE anymore. That's because ODS HTML automatically creates an external image file and then builds an <IMG> tag which points to the location of the external image file. Then, if I don't want the HTML file, I can just ditch it and use the PNG file.
To name the PNG file, I use NAME= on the HBAR or VBAR or PLOT statement. The .PNG extension gets added automatically.
For example, if I run the code below and my working directory is set to 'c:\temp', then the code will create: c:\temp\inside.png
Device=activex (and actximg) does not support "gtitles" (titles within the graph area), and therefore the actximg png file does not contain the title.
This is another one of those "feature requests" that it would be good to send some official feedback to SAS, to let the development teams know there is customer interest in adding this feature. (you might reference feature request S0352870).
Also, when you run a device=gif or png sas/graph job as a Stored Process, it uses "nogtitles" by default, and you have to over-ride the default to change it to using "gtitles". Just thought I'd mention that, in case you go that route later.