Data visualization with SAS programming

Can we create a pie to bar graph in sas

Reply
Contributor
Posts: 65

Can we create a pie to bar graph in sas

How to create a pie to bar graph using below data.

 

L1 - 23
L2 - 124
L333
L47
L55
test15
test25
Super Contributor
Posts: 448

Re: Can we create a pie to bar graph in sas

Hi,

 

Here is the simple syntax for bar chart. There are many options your can use to customize your graph.

data have;
infile datalines ;
input name :$ var;
datalines;
L1 23
L2 124
L3 33
L4 7
L5 5
test1 5
test2 5
;
run;

PROC GCHART DATA=WORK.have;
VBAR name/ SUMVAR=var;
run;
Thanks,
Suryakiran
Contributor
Posts: 65

Re: Can we create a pie to bar graph in sas

Posted in reply to SuryaKiran

I am looking for exact pie to bar graph as below.

.pb.jpg

SAS Super FREQ
Posts: 1,042

Re: Can we create a pie to bar graph in sas

PROC GCHART has this concept of a "detail" pie that can convey similar information to your examples. Check out this example and see what you think:

 

http://support.sas.com/documentation/cdl/en/graphref/65389/HTML/default/viewer.htm#p0rykxji060wvzn1x...

 

Hope this helps!

Dan

PROC Star
Posts: 1,190

Re: Can we create a pie to bar graph in sas

See this

 

How About Some Pie?

Ask a Question
Discussion stats
  • 4 replies
  • 122 views
  • 0 likes
  • 4 in conversation