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 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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