BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
NareshAbburi
Calcite | Level 5

Hi I wrote following code for the attached Data and got the attached graph. But I want something like colorful graph that I've attached.

Please help me get colors in my graph.

ODS GRaphics on;

proc chart data=Multiplot;

vbar Client / sumvar = percent discrete type=Percent

subgroup = cross;

run;

quit;


Capture.PNGI dont want this.PNGCapture_requirement.PNG
1 ACCEPTED SOLUTION

Accepted Solutions
GraphGuy
Meteorite | Level 14

Since you are a beginner with Gchart, you will probably want to take some time to look through the examples, to see if any of them are similar to the chart you want, and then use them as a starting place. The link below should take you to those examples:

   Support.sas.com

You can use the order= option on the axis statement, to force the response axis to go from 0 to 100.

With a gchart vbar, you can use the inside= or outside= option to place numbers at the top of the bars.

View solution in original post

3 REPLIES 3
GraphGuy
Meteorite | Level 14

You'll want to use "proc gchart" rather than "proc chart".

NareshAbburi
Calcite | Level 5

Hi,

Thanks for the quick help. But again, My plot is not giving upto 100%. it just giving me the max percent that is available in the data. I want the plot to be up to 100%.

Also, I would like to represent the percentage number on the bar itself. how i can i do it...?

Plz help me.

GraphGuy
Meteorite | Level 14

Since you are a beginner with Gchart, you will probably want to take some time to look through the examples, to see if any of them are similar to the chart you want, and then use them as a starting place. The link below should take you to those examples:

   Support.sas.com

You can use the order= option on the axis statement, to force the response axis to go from 0 to 100.

With a gchart vbar, you can use the inside= or outside= option to place numbers at the top of the bars.

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
  • 1404 views
  • 0 likes
  • 2 in conversation