Exploring, predicting and reporting with SAS Visual Analytics and SAS Visual Statistics

How to control the order of axis which is based on a categorical variable?

Accepted Solution Solved
Reply
Contributor
Posts: 23
Accepted Solution

How to control the order of axis which is based on a categorical variable?

I am doing a frequency bar chart with y-axis as frequency and x-axis as age group (such as 0-19, 20-29, ...). I want the axis arranged from youngest to oldest group, however, the default is going from highest frequency age group to lowest frequency age group, how can I rerrange the order of x-axis categories according to my preference?


Accepted Solutions
Solution
‎06-23-2017 11:46 AM
Super User
Posts: 3,254

Re: How to control the order of axis which is based on a categorical variable?

Try a custom sort on age group - you just right click on age group properties in the data source and it should be listed.

View solution in original post


All Replies
Solution
‎06-23-2017 11:46 AM
Super User
Posts: 3,254

Re: How to control the order of axis which is based on a categorical variable?

Try a custom sort on age group - you just right click on age group properties in the data source and it should be listed.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 140 views
  • 0 likes
  • 2 in conversation