<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: webreport with ods html5 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/webreport-with-ods-html5/m-p/905365#M357602</link>
    <description>&lt;P&gt;I managed to upgrade the result a little by using contents instead of page and adding some text in between. However, by using outputfmt=svg, the image size should adapt to the screen used (large screen, laptop screen,...) but this seems not to be the case.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods noproctitle;

* with ods graphics / imagefmt=svg the contents will resize to 
 the size of the browser container  ;

ods html5 style=opal
          path= "/data/temp" (url=none)
          body = 'test_body.htm'
          contents = 'test_contents.htm' /*creates toc*/
          frame = 'test_web.htm'
          /*page = 'test_pagecontent.htm' newfile=page*/
          options(svg_mode="inline");

/* setup the graphs */
ods graphics on / reset=all scale=off 
                  imagefmt=SVG outputfmt=svg
                  imagemap=on; /* needed for data tips */


ods html5 text= '&amp;lt;h1&amp;gt;Scatter Plots&amp;lt;/h1&amp;gt;' ;

ods layout gridded rows=1 columns=2 
  column_gutter=20px;

ods region row=1 column=1;

ods
ods proclabel "weight vs height for male students";
title j=c "weight vs height for male students";
proc sgplot data = sashelp.class description =' ' noopaque;
scatter x=weight y=height;
where sex='M';
run;

ods region row=1 column=2;

ods proclabel "weight vs height for female students";
title j=c "weight vs height for female students";
proc sgplot data = sashelp.class description =' ' noopaque;
scatter x=weight y=height;
where sex='F';
run;

ods layout end;

ods html5 text = '&amp;lt;br&amp;gt;' ;
ods html5 text = '&amp;lt;hr&amp;gt;' ;
ods html5 text = '&amp;lt;br&amp;gt;' ;

******************************************;

ods html5 text= '&amp;lt;h1&amp;gt;Boxplots&amp;lt;/h1&amp;gt;' ;

ods layout gridded rows=1 columns=2 
  column_gutter=20px;

ods region row=1 column=1;

ods proclabel "boxplots weight";
title j=c "boxplots weight";
proc sgplot data = sashelp.class description =' ' noopaque;
vbox weight / category = sex ;
run;

ods region row=1 column=2;

ods proclabel "boxplots height";
title j=c "boxplots height";
proc sgplot data = sashelp.class description =' ' noopaque;
vbox height / category = sex ;
run;


ods layout end;
ods html5 close;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 30 Nov 2023 14:53:33 GMT</pubDate>
    <dc:creator>vstorme</dc:creator>
    <dc:date>2023-11-30T14:53:33Z</dc:date>
    <item>
      <title>webreport with ods html5</title>
      <link>https://communities.sas.com/t5/SAS-Programming/webreport-with-ods-html5/m-p/904877#M357465</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently I have the following (as an example) working code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods noproctitle;&lt;BR /&gt;&lt;BR /&gt;ods html5 style=opal
path= "/data/temp" (url=none)
body = 'test2_body.htm'
frame = 'test2_web.htm'
page = 'test2_pagecontent.htm' newfile=page
options(svg_mode="inline");

ods graphics on / reset=all scale=off imagemap=on outputfmt=svg ;

options svgheight="50%" svgwidth="75%" ;

ods proclabel "weight vs height for male students";
title j=c "weight vs height for male students";
proc sgplot data = sashelp.class description =' ' noopaque;
scatter x=weight y=height;
where sex='M';
run;

ods proclabel "weight vs height for female students";
title j=c "weight vs height for female students";
proc sgplot data = sashelp.class description =' ' noopaque;
scatter x=weight y=height;
where sex='F';
run;

ods proclabel "boxplots weight";
title j=c "boxplots weight";
proc sgplot data = sashelp.class description =' ' noopaque;
vbox weight / category = sex ;
run;

ods proclabel "boxplots height";
title j=c "boxplots height";
proc sgplot data = sashelp.class description =' ' noopaque;
vbox height / category = sex ;
run;

ods html5 close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This creates one plot per page with a page content sidebar which I like. I would however now want to have per page 2 side by side plots. I tried with ods layout gridded and ods region, however, this does not give the expected results. Did somebody try this? It does work without the newfile=page option and without the page content, but that is not what I want.&lt;/P&gt;
&lt;P&gt;with kind regards,&lt;/P&gt;
&lt;P&gt;Veronique&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 15:32:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/webreport-with-ods-html5/m-p/904877#M357465</guid>
      <dc:creator>vstorme</dc:creator>
      <dc:date>2023-11-28T15:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: webreport with ods html5</title>
      <link>https://communities.sas.com/t5/SAS-Programming/webreport-with-ods-html5/m-p/905365#M357602</link>
      <description>&lt;P&gt;I managed to upgrade the result a little by using contents instead of page and adding some text in between. However, by using outputfmt=svg, the image size should adapt to the screen used (large screen, laptop screen,...) but this seems not to be the case.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods noproctitle;

* with ods graphics / imagefmt=svg the contents will resize to 
 the size of the browser container  ;

ods html5 style=opal
          path= "/data/temp" (url=none)
          body = 'test_body.htm'
          contents = 'test_contents.htm' /*creates toc*/
          frame = 'test_web.htm'
          /*page = 'test_pagecontent.htm' newfile=page*/
          options(svg_mode="inline");

/* setup the graphs */
ods graphics on / reset=all scale=off 
                  imagefmt=SVG outputfmt=svg
                  imagemap=on; /* needed for data tips */


ods html5 text= '&amp;lt;h1&amp;gt;Scatter Plots&amp;lt;/h1&amp;gt;' ;

ods layout gridded rows=1 columns=2 
  column_gutter=20px;

ods region row=1 column=1;

ods
ods proclabel "weight vs height for male students";
title j=c "weight vs height for male students";
proc sgplot data = sashelp.class description =' ' noopaque;
scatter x=weight y=height;
where sex='M';
run;

ods region row=1 column=2;

ods proclabel "weight vs height for female students";
title j=c "weight vs height for female students";
proc sgplot data = sashelp.class description =' ' noopaque;
scatter x=weight y=height;
where sex='F';
run;

ods layout end;

ods html5 text = '&amp;lt;br&amp;gt;' ;
ods html5 text = '&amp;lt;hr&amp;gt;' ;
ods html5 text = '&amp;lt;br&amp;gt;' ;

******************************************;

ods html5 text= '&amp;lt;h1&amp;gt;Boxplots&amp;lt;/h1&amp;gt;' ;

ods layout gridded rows=1 columns=2 
  column_gutter=20px;

ods region row=1 column=1;

ods proclabel "boxplots weight";
title j=c "boxplots weight";
proc sgplot data = sashelp.class description =' ' noopaque;
vbox weight / category = sex ;
run;

ods region row=1 column=2;

ods proclabel "boxplots height";
title j=c "boxplots height";
proc sgplot data = sashelp.class description =' ' noopaque;
vbox height / category = sex ;
run;


ods layout end;
ods html5 close;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Nov 2023 14:53:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/webreport-with-ods-html5/m-p/905365#M357602</guid>
      <dc:creator>vstorme</dc:creator>
      <dc:date>2023-11-30T14:53:33Z</dc:date>
    </item>
  </channel>
</rss>

