BookmarkSubscribeRSS Feed
kkc11
Calcite | Level 5
Please help me to plot a gchart with stacked graph,am experiencing error while running program.can anyone help in resolving

Code- proc gchart data =work.test;
Vbar classname / midpoint g100
Subgroup =division sumvar=rank
Clipref
Legend=legend1
Gaxis=axis1
Raxis=axis2
Space=0
Anno=work.students;
Run;


Error -syntax error at midpoint parameter
If i remove midpoint parameter its asking datasystem is requested for midpoint but value is not on graph
3 REPLIES 3
PaigeMiller
Diamond | Level 26

The documentation is pretty clear

http://documentation.sas.com/?cdcId=pgmmvacdc&cdcVersion=9.4&docsetId=graphref&docsetTarget=p0nse2ml...

 

There is no MIDPOINT option in PROC GCHART

 

There is a MIDPOINTS= option, maybe that is what you want?

--
Paige Miller
ballardw
Super User

Gchart midpoints= option would look like

midpoints=(30 40 50)

where there is a list of values that you want to be the midpoint of the bars on the axis.

 

OR

midpoints=OLD if you want to use the Nelder algorithm for determining default midpoint values from the values of a numeric variable used for the axis

kkc11
Calcite | Level 5
While using sgplot, what option we can useinplace pct= and stat=in sas9.2 or earlier version.please gelp me

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 1199 views
  • 0 likes
  • 3 in conversation