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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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