BookmarkSubscribeRSS Feed
ShivamKS
Obsidian | Level 7

Is there a possibility to order the stack bars in descending order based on their height(i.e. highest to lowest) . Example as shown in the screenshot want the bar to be syncronised on the basis of their height from highest to lowest value. Please share the detailed steps if possible.

2 REPLIES 2
skillman
SAS Employee

Unfortunately not. Once you add a category to the group field, and set the chart to group the data, you loose the ability to sort by a measure.

-shawn

ballardw
Super User

Since the screen shot isn't showing its a bit hard to see what you want. There are examples in the online help of using an Annotate dataset to create a simple barchart from scratch. Not slick but since you a sending the draw commands you can control the color of any given rectangle explicitly. Of course with this approach you have to do the same to get a legend. If you want to display stacks with the groups in different orders from one bar to the next this may be the general approach though.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1056 views
  • 0 likes
  • 3 in conversation