BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Rakeon
Quartz | Level 8

Hi,

I use a Bar Chart Graph in order to visualize a categorical variable: (<5% 5%-8% 8%-10%.....).  The problem is that the order in x-axis isn't what I want, and therefore I need to customize the order.

I also look this two post:

https://blogs.sas.com/content/sgf/2015/02/27/sas-visual-analytics-creating-a-custom-sort-order/

https://support.sas.com/kb/49/445.html

 

but they doesn't work.

Have you some idea?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Sam_SAS
SAS Employee
Hello,

It is possible that you have created the custom sort properly, but the chart is not sorting by the category variable. This happens to me all the time.

Try right-clicking the chart and then selecting Sort from the context menu. (The UI might be different depending on the version of VA that you have.) Be sure the correct variable is used to sort the chart.

Let us know if that helps,
Sam

View solution in original post

4 REPLIES 4
pink_poodle
Barite | Level 11
Please check out sample 56933 from the Graph Samples Gallery:
https://support.sas.com/en/knowledge-base/graph-samples-gallery.html
Rakeon
Quartz | Level 8

Hi,
I use SAS VA with the object Bar Chart. I just can set some parameter of this object and I don't know how if i can write code in SAS VA and show some report. I'm just look to sort the x-axis in a custom way with the parameter of SAS VA.

 

 

 

 

Sam_SAS
SAS Employee
Hello,

It is possible that you have created the custom sort properly, but the chart is not sorting by the category variable. This happens to me all the time.

Try right-clicking the chart and then selecting Sort from the context menu. (The UI might be different depending on the version of VA that you have.) Be sure the correct variable is used to sort the chart.

Let us know if that helps,
Sam
Rakeon
Quartz | Level 8

Thanks Sam,

in the property there wasn't checked the checkbox of x-axis Label.

As said you, after checked the x-axis Label, I sorted from the context menu and it works.

 

 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 4 replies
  • 3296 views
  • 0 likes
  • 3 in conversation