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-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!

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
  • 902 views
  • 0 likes
  • 3 in conversation