BookmarkSubscribeRSS Feed
Mscarboncopy
Pyrite | Level 9

Thank you! I tried that and it did not work but I might be doing something wrong.

I also tried to use format percent8.0 to  get rid of the decimals (another option)... but I do not have a Percent variable, I am creating that variable in the graph and I tried several places on my code but it won't let me format the var Percent that is being created for the graph as I showed in my original post.

 

This is my entire code

 

ODS GRAPHICS ON / RESET IMAGENAME="Fig1" IMAGEFMT=png ANTIALIASMAX=10000;

GOPTIONS RESET=ALL BORDER CBACK=WHITE HTITLE=12PT HTEXT=25PT ftext='Bold';
OPTIONS CLEANUP;
proc Gchart Data=have
vbar3d Greetings /TYPE=PERCENT
annotate=have
 
                     inside=PERCENT
 
patternid=midpoint
      width=20
      space=5
      maxis=axis1
      raxis=axis2
      gaxis=axis3;
      coutline=black;
axis logbase=2 logstyle=expand
     order=(1,2,3);
       axis2 label=(angle=90 'Percent');
      run;
quit;
 
ODS GRAPHICS OFF;
   
run;
PaigeMiller
Diamond | Level 26

At the risk of offending people, I will state my opinion that the gray gradients in the 2D plot above convey no information in displaying this data, and so it meets the definition of "chartjunk". In fact, at that Wikipedia link there is a similar plot where color gradients are inserted into a map of North Macedonia, which serve no useful purpose, similar to the gray gradients in the 2D bar chart above.

--
Paige Miller
Mscarboncopy
Pyrite | Level 9

I was able to use this and it worked to remove those extra marks. But now I am considering not doing a 3D chart 🙂 In any case, great learning experience.

axis logbase=2 logstyle=expand
     order=(1,2,3);

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 17 replies
  • 2616 views
  • 9 likes
  • 5 in conversation