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.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

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