BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
YvesA_Roy
Calcite | Level 5

Hi,

 

I'm looking for a solution to integrate user-defined style in the Format -> Style menu of ODS Graphics Editor (v 9.41), as the default list is rather short. I didn't find anything in the other menus (such as Preferences...) nor in the installation directory.

 

Thanks in advance

Yves Roy

Université de Poitiers

1 ACCEPTED SOLUTION

Accepted Solutions
Jay54
Meteorite | Level 14

The ODS Graphics Editor only know about the SAS shipped styles.  It also gets the one custom style used with the current graph.  You can change the style to one of the SAS shipped styles, or the current style.  You can also customize a style and save it as a SAS program.  Then you have to run the SAS program in your SAS session to make it available there.

 

There is no way to send multiple custom styles to the Editor.

View solution in original post

3 REPLIES 3
djrisks
Barite | Level 11

Hi,

 

Have you creating a new style using Proc Template? If so, If you use the following code before you create the .sge graph, then the graph will have the style that you want:

 

ods listing sge = on style = styles.newstyle;

 

If you only wanted to swap colors of your grouped variable around, then you can do this within ODS Graphics Editor using the Format -> Graph Properties -> Group Attributes menu.

 

Thanks,

 

 

YvesA_Roy
Calcite | Level 5

Thanks djRisks,

 

but I already knew that. My only purpose is to visualy compare several style options for a given chart, including personalized styles, without having to regenerate the chart entirely, especialy in the case the chart has been manually edited. I have also tried to use the ods html5 or ods pdf style= option in a subsequent proc sgrender step, without success: the style remains the one selected in ODS Grpahics Editor just before File -> Save.

 

Yves

Jay54
Meteorite | Level 14

The ODS Graphics Editor only know about the SAS shipped styles.  It also gets the one custom style used with the current graph.  You can change the style to one of the SAS shipped styles, or the current style.  You can also customize a style and save it as a SAS program.  Then you have to run the SAS program in your SAS session to make it available there.

 

There is no way to send multiple custom styles to the Editor.

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
  • 3 replies
  • 1048 views
  • 0 likes
  • 3 in conversation