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

In SAS 9.2 Is there a way to set the size of gchart title2 and title3 to font 10 when I have used goptions like the below? 

The problem I am running into is that the htext=8pt I am using to make the graph text 8pt make the second title 8pt as well.

goptions reset=all hsize=3in vsize=3in htext=8pt htitle=10pt;

1 ACCEPTED SOLUTION

Accepted Solutions
data_null__
Jade | Level 19

Doesn't the option need to come before the quoted string.  You can change the height.  Title h=10pt 'Ten' h=12pt 'Twelve';

View solution in original post

6 REPLIES 6
ballardw
Super User

Have you tried options in the Title statement:

Title2 height=6pt "Title 2 text";

DavidPhillips2
Rhodochrosite | Level 12

title1 "Admissions";

title2 "Incomming Class" height=10pt;

title3 "by gender" height=10pt;

but no luck I think goptions is overriding it.

data_null__
Jade | Level 19

Doesn't the option need to come before the quoted string.  You can change the height.  Title h=10pt 'Ten' h=12pt 'Twelve';

DavidPhillips2
Rhodochrosite | Level 12

data_null_,

Thanks for your answer, it solved my need.  Why does the order matter, that is weird.

ballardw
Super User

It's very logical if you think of it as processing from left to right. If there is no option specifically set then the default size, font, color, angle, rotation and what have you are the default. When you override the default it stays set for the remainder of that instruction until changed.

Consider this title

Title3 height=10pt color=red "This starts the title" height= 6pt "change height" color=blue " and now change color";

ballardw
Super User

Just like the most of the text, the modifiers come first, ODS Text, Axis tick labels, legend labels and values and many other examples of text modifiers.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 6 replies
  • 2526 views
  • 6 likes
  • 3 in conversation