Data visualization with SAS programming

How to create 3d clustered column chart in sas

Accepted Solution Solved
Reply
Contributor
Posts: 65
Accepted Solution

How to create 3d clustered column chart in sas

i can create a chart with clustered but how to create a 3D clustered chart as below

 

dd.jpg


Accepted Solutions
Solution
3 weeks ago
Frequent Contributor
Posts: 142

Re: How to create 3d clustered column chart in sas

 

Try this:

 

axis1 minor=none label=('') value=none ;

axis2 minor=none label=('');

axis3 label=('') minor=none value=(angle=65) ;

legend1 label=none

shape=bar(3,3)

cborder=white

cblock=white

origin=(24,);

pattern1 color='#90EE90' ;

pattern2 color=blue;

title "3D Chart";

proc gchart data=have;

vbar3d app / discrete sumvar=count

group=fruit

subgroup=App

space=0

maxis=axis1

raxis=axis2

gaxis=axis3

outside=sum

legend=legend1

 

shape=block

autoref cframe=white

ascending

 

 

;

run;

quit;

 

gchart3d.JPG

View solution in original post


All Replies
Frequent Contributor
Posts: 142

Re: How to create 3d clustered column chart in sas

Hi,

 

Can you post the code which you are using .

 

Thanks,

Vishnu

Contributor
Posts: 65

Re: How to create 3d clustered column chart in sas

I did transpose the data as below :

 

fruitcountApp
orange86Value
orange180Other
apple33Value
apple629Other
banana119Value
banana166Other
grape56Value
grape408Other
melon43Value
melon189Other
pineapple9Value
pineapple54Other
berry183Value
berry318Other
kiwi102Value
kiwi262

Other

 

 

PROC SGPLOT DATA =dash.month_data noborder;
styleattrs datacolors=('#90EE90' blue);
VBAR fruit /response=count GROUP = App GroupDisplay=Cluster datalabel
dataskin=pressed
  baselineattrs=(thickness=0) nooutline;
  xaxis display=(nolabel) FITPOLICY=SPLIT discreteorder=data;
  yaxis display=(noline);
run;

Solution
3 weeks ago
Frequent Contributor
Posts: 142

Re: How to create 3d clustered column chart in sas

 

Try this:

 

axis1 minor=none label=('') value=none ;

axis2 minor=none label=('');

axis3 label=('') minor=none value=(angle=65) ;

legend1 label=none

shape=bar(3,3)

cborder=white

cblock=white

origin=(24,);

pattern1 color='#90EE90' ;

pattern2 color=blue;

title "3D Chart";

proc gchart data=have;

vbar3d app / discrete sumvar=count

group=fruit

subgroup=App

space=0

maxis=axis1

raxis=axis2

gaxis=axis3

outside=sum

legend=legend1

 

shape=block

autoref cframe=white

ascending

 

 

;

run;

quit;

 

gchart3d.JPG

Super User
Posts: 22,850

Re: How to create 3d clustered column chart in sas

Contributor
Posts: 65

Re: How to create 3d clustered column chart in sas

Thank you Reeza for the link.

Super User
Posts: 22,850

Re: How to create 3d clustered column chart in sas

You probably know this, but 3D charts are considered junk charts.

 

 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 6 replies
  • 139 views
  • 4 likes
  • 3 in conversation