BookmarkSubscribeRSS Feed
MrE
SAS Employee MrE
SAS Employee
On WRS 3.1, are there anyway to display data value of each block of stack?
for example, I defined Bar height is value,
Bars is year
and Bar SubGroup is Class (which are A,B and C)
I also set Graph properties as Vertical, Stacked Bar and Check show data values.

The graph output just shows sum of value of all class(A+B+C) on the top of bar. But I would like to show data value of each class. Please advice.
3 REPLIES 3
AngelaHall
SAS Employee
MrE,
I was able to duplicate your issue in my version of the sys (4.2 M1).
It appears that this option isn't yet available.

A recommendation would be to write a SAS stored process that completes this.
Included is an example of this code (I successfully tested in 9.2 and saw documentation that this option was available in 9.1.3.)

proc gchart data=sashelp.shoes;
hbar region / subgroup=subsidiary sumvar=stores inside=sum;
run;quit;

~ Angela Hall
http://sas-bi.blogspot.com
MrE
SAS Employee MrE
SAS Employee
Thanks for your reply!, Angela
: )
Juli
Calcite | Level 5
Hi,

Does anyone know when this "inside" option for stacked bar charts will be available in WRS?

Also, is there a plan to have a report object that will create a stacked bar chart with line in WRS?

Thanks!
Juli

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1219 views
  • 0 likes
  • 3 in conversation