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

Hi,

 

I have Raxis values ranging from -80 to 0 in proc gchart.

 

i specified as 

axis2 order = (-70 to 0 by -10)
offset=(0,0)
minor = none
value = (h=1);

 

but i log i see 

"WARNING: Order= clause on the axis statement is not valid. The default axis values will be used."

 

i'm getting -60 to 0 range values in output. not from -80 to 0.

 

please help.

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Use

axis2 order = (-70 to 0 by 10)
offset=(0,0)
minor = none
value = (h=1);

The code you originally showed in effect tells SAS to: start the left hand side at a value of -70, decrease by 10 at each step to the right and end at 0.

 

 

Since the default axis shows -60 I actually doubt that you have values of -80 to display. And if you want to see -80 then starting at -70 would exclude them. To see -80 when you specify an order list then you need to make the upper and lower bounds such that the expected values are displayed.

View solution in original post

2 REPLIES 2
ballardw
Super User

Use

axis2 order = (-70 to 0 by 10)
offset=(0,0)
minor = none
value = (h=1);

The code you originally showed in effect tells SAS to: start the left hand side at a value of -70, decrease by 10 at each step to the right and end at 0.

 

 

Since the default axis shows -60 I actually doubt that you have values of -80 to display. And if you want to see -80 then starting at -70 would exclude them. To see -80 when you specify an order list then you need to make the upper and lower bounds such that the expected values are displayed.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 900 views
  • 0 likes
  • 2 in conversation