BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
xxformat_com
Barite | Level 11

Hi,

 

it is possible to define the height and width of the graph image using the ods graphics statement.

But I could not find an option to define the height and width of the wall space.

It is possible with proc sgplot and/or proc template?

 

Cheers

1 ACCEPTED SOLUTION

Accepted Solutions
DanH_sas
SAS Super FREQ

@xxformat_com , this will not do what you want. the DESiGNWIDTH/DESIGNHEIGHT are used to establish the default dimensions of the entire graph, not the wall area. By default, the width/height on the ODS GRAPHICS statement are set to the to the DESIGNWIDTH/DESIGNHEIGHT. If you override width/height on the ODS GRAPHICS statement, we use the difference between DESIGNWIDTH/DESIGNHEIGHT and width/height to set certain scaling factors for the final output.

 

In GTL, you can change the DESIGNWIDTH/DESIGNHEIGHT directly inside of a template to enforce a different default width/height for the graph. This can be desirable for certain types of layouts.

View solution in original post

4 REPLIES 4
ChrisNZ
Tourmaline | Level 20

Like this?

ods graphics on / height=300px width=300px; * Choose another unit if needed;

 

xxformat_com
Barite | Level 11

I'm ok with defining new values. I would like to know how to idenfity the default values.

xxformat_com
Barite | Level 11

I've found the answer:

 

Height:

The value of the SAS registry entry "ODS > ODS GRAPHICS > Design Height" or the value of the DesignHeight= option in a STATGRAPH template. Typically, the value is 480px.

 

Source: https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/p0kroq43yu0lspn16hk1u4c65lti.ht...

DanH_sas
SAS Super FREQ

@xxformat_com , this will not do what you want. the DESiGNWIDTH/DESIGNHEIGHT are used to establish the default dimensions of the entire graph, not the wall area. By default, the width/height on the ODS GRAPHICS statement are set to the to the DESIGNWIDTH/DESIGNHEIGHT. If you override width/height on the ODS GRAPHICS statement, we use the difference between DESIGNWIDTH/DESIGNHEIGHT and width/height to set certain scaling factors for the final output.

 

In GTL, you can change the DESIGNWIDTH/DESIGNHEIGHT directly inside of a template to enforce a different default width/height for the graph. This can be desirable for certain types of layouts.

CFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

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