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

 

Time is running out to save with the early bird rate. Register by Friday, March 1 for just $695 - $100 off the standard rate.

 

Check out the agenda and get ready for a jam-packed event featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events. 

 

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