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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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.

SAS Training: Just a Click Away

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

Browse our catalog!

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