BookmarkSubscribeRSS Feed
ArpitSharma
Fluorite | Level 6

Hello,

 

I have this in my code--

 

proc template;
define statgraph sgplot;
dynamic _ticklist_;
begingraph /;
layout overlay / yaxisopts=( type=linear linearopts=( viewmin=&min. viewmax=&max. )) xaxisopts=(discreteopts=(tickvaluelist=(&all.) tickvaluefitpolicy=rotatethin));

...........

The xaxisopts helps me with this.

 

axis.PNG

I want all the values plotted but display only some of them. Like 200603 200606 etc.

 

How can i have that?

4 REPLIES 4
PeterClemmensen
Super User

Specify the ticks you want listed in the 

 

tickvaluelist=()

part. This documentation on modifying the axes is probably helpful.

 

https://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_templt_a000...

ArpitSharma
Fluorite | Level 6

Thank You for helping me here.

 

But I am already using tickvaluelist=()

 

tickvaluelist=(&all.)

 

ballardw
Super User

@ArpitSharma wrote:

Thank You for helping me here.

 

But I am already using tickvaluelist=()

 

tickvaluelist=(&all.)

 


Then make sure that the &all value only has the ones that you want tickmarks for.

 

I have found that horizontal box plots often work better for large numbers of boxes.

Jay54
Meteorite | Level 14

Why not use a date format?

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 4 replies
  • 723 views
  • 0 likes
  • 4 in conversation