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.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

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