Hi people!
Is it possible to build bar charts with the data label results in percentage and frequency at the same time?
This is a pie chart but is it possible with bar charts?
Thanks for any help!
Your subject and question are very different. What's your question?
If you precalculate the labels then then you can use that variable in the datalabel statement.
You coukd plot two two identical series, but make one 100% transparent.
Or you could try GTL for different options.
Were you thinking of using HBAR, HBARBASIC, OR HBARPARM?
One way is to overlay a TEXT or SCATTER (with Markerchar) on the bar. To allow overlays, you have to use a VBARPARM or VBARBASIC. If you compute your values before hand, and put the freq and % vaues in different columns, yuu can use VBARPARM with DATALABEL to display the response value and display the 2nd value using a TEXT (SAS 9.40M2) plot layer. If you do not have SAS 9.40M2, use the SCATTER for overlay.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.
Ready to level-up your skills? Choose your own adventure.