BookmarkSubscribeRSS Feed
Anita_n
Pyrite | Level 9

Is there any option to add to the xaxis, so that the xaxis starts from 2005 instead of 0.

While the y axis starts from 0.

 

graph.jpg

7 REPLIES 7
PaigeMiller
Diamond | Level 26

@Anita_n wrote:

Is there any option to add to the xaxis, so that the xaxis starts from 2005 instead of 0.

While the y axis starts from 0.

 

graph.jpg


It seems to me that the XAXIS does start at 2005, and does not start at zero.

 

So I am confused by your question.

--
Paige Miller
Ksharp
Super User

 xaxis ..........  values=(2005 to 2018 by 2)

Ksharp
Super User

 xaxis ..........  values=(2005 to 2018 by 2)

Anita_n
Pyrite | Level 9

I already have the code 2005 to 2018 by 2 but that does not move the value 2015 to 0 point

 

Ksharp
Super User

OK. try

 

xaxis ....... minoffset=0

 

OR

xaxis.......offsetmin=0 

Anita_n
Pyrite | Level 9

Thanks for your reply but I have already used the offsetmin options

ballardw
Super User

@Anita_n wrote:

Thanks for your reply but I have already used the offsetmin options


Show the code you are currently using. That will allow us not to make suggestions that you have already implemented.

It may also help to provide some example data.

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!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 7 replies
  • 2033 views
  • 0 likes
  • 4 in conversation