BookmarkSubscribeRSS Feed
sascode
Quartz | Level 8

Hello,

I need to use proc sgpanel to create horizontal bar for my numerical variable  for each category at different years.

Everything works fine except an issue in the way how categories are ordered in plot.

I created another numerical variable to reorder my categories but again the plot is not changed.

I would like to see some suggestions related to this problem.

Thanks.

2 REPLIES 2
PaigeMiller
Diamond | Level 26

First, please go back and edit your subject line so that it contains a brief description of the actual problem. This helps everyone, especially if someone else has a similar problem to yours.

 

In PROC SGPANEL use the GROUPORDER= option.

--
Paige Miller
sascode
Quartz | Level 8
Thanks for your suggestion,
i solved by specifying discreteorder in colaxis steatement.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 2 replies
  • 870 views
  • 1 like
  • 2 in conversation