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;
Doesn't the option need to come before the quoted string. You can change the height. Title h=10pt 'Ten' h=12pt 'Twelve';
Have you tried options in the Title statement:
Title2 height=6pt "Title 2 text";
title1 "Admissions";
title2 "Incomming Class" height=10pt;
title3 "by gender" height=10pt;
but no luck I think goptions is overriding it.
Doesn't the option need to come before the quoted string. You can change the height. Title h=10pt 'Ten' h=12pt 'Twelve';
data_null_,
Thanks for your answer, it solved my need. Why does the order matter, that is weird.
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";
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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.