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