Graphics Programming

Data visualization using SAS programming, including ODS Graphics and SAS/GRAPH. Charts, plots, maps, and more!
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
radha009
Quartz | Level 8

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

 

dd.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
Vish33
Lapis Lazuli | Level 10

 

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

6 REPLIES 6
Vish33
Lapis Lazuli | Level 10

Hi,

 

Can you post the code which you are using .

 

Thanks,

Vishnu

radha009
Quartz | Level 8

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;

Vish33
Lapis Lazuli | Level 10

 

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

radha009
Quartz | Level 8

Thank you Reeza for the link.

Reeza
Super User

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

 

 

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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