Data visualization with SAS programming

Colors in the chart

Accepted Solution Solved
Reply
Contributor
Posts: 40
Accepted Solution

Colors in the chart

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;

Attachment
Attachment
Attachment

Accepted Solutions
Solution
‎09-22-2014 10:42 AM
SAS Employee
Posts: 963

Re: Colors in the chart

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


All Replies
SAS Employee
Posts: 963

Re: Colors in the chart

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

Contributor
Posts: 40

Re: Colors in the 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.

Solution
‎09-22-2014 10:42 AM
SAS Employee
Posts: 963

Re: Colors in the chart

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.

Post a Question
Discussion Stats
  • 3 replies
  • 318 views
  • 0 likes
  • 2 in conversation