BookmarkSubscribeRSS Feed
elosse
Calcite | Level 5

Hi, I am trying to create a graph using proc template and sgplot where I need 13 lines with 13 different colors.  I am using the "style GraphData# from GraphData# ..." setup.  I've tried to find out if there is a GraphData# limit and have not found anything yet that specifically states a limit but what I did find would indicate a maximum of 12.  Is 12 actually the maximum and can anything be done to be able to have more than 12?

2 REPLIES 2
Jay54
Meteorite | Level 14

There is no limit.  Most SAS shipped styles include 12 elements for groups, but you can define more (or less).  Derive a new style using proc Template, and derive your own style and add more consecutive elements.  The list of attributes is only as long as those "consecutively" defined. 

If you are using SAS 9.4 (or later), you do not need a new style and you can define these lists of attributes in the STYLEATTRS statement in SGPLOT or in BEGINGRAPH in GTL. 

elosse
Calcite | Level 5

Thank you Sanjay.

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
  • 2 replies
  • 755 views
  • 3 likes
  • 2 in conversation