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;
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:
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.
You'll want to use "proc gchart" rather than "proc chart".
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.
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:
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.
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!
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.
Ready to level-up your skills? Choose your own adventure.