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

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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