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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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