<?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: How to get SGPANEL to write HTML output in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-get-SGPANEL-to-write-HTML-output/m-p/441006#M15219</link>
    <description>&lt;P&gt;Is the separate image being created?&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2018 20:32:57 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2018-02-28T20:32:57Z</dc:date>
    <item>
      <title>How to get SGPANEL to write HTML output</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-get-SGPANEL-to-write-HTML-output/m-p/440997#M15214</link>
      <description>&lt;P&gt;I want the chart to be visible in an HTML page, but only get&amp;nbsp;a tiny icon in the&amp;nbsp;upper left corner&amp;nbsp;in the HTML file, labeled "The SGPANEL Procedure".&amp;nbsp; I'm on Linux, SAS 9.4 TS1M3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;     ods html file="&amp;amp;outdir/&amp;amp;sgplot_report_file";
    *********************************************************;
    * Plot quantities by categories;
    *********************************************************;
    title "&amp;amp;wfs_csv_file";
    title2   height=7pt "%sysfunc(today(),date9.), %sysfunc(time(),hhmm5.)";

    proc sgpanel data=work.sgplot_prep;
        label orig_face = "Orig Face"
              holding = "Holding";
        panelby agency / columns=3;
        rowaxis  values=(-20000 to 20000 by 5000)
                 tickvalueformat=comma7.
                 offsetmin=0.05
                 offsetmax=0.05
                 valueshint
                 label="$Million";
        vbar security_type /response = orig_face;
        vbar security_type /response = holding  transparency=0.50;
    run;

    ods html close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 19:44:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-get-SGPANEL-to-write-HTML-output/m-p/440997#M15214</guid>
      <dc:creator>DougZ</dc:creator>
      <dc:date>2018-02-28T19:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get SGPANEL to write HTML output</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-get-SGPANEL-to-write-HTML-output/m-p/440998#M15215</link>
      <description>&lt;P&gt;Try HTML5 instead?I'm fairly certain that embeds the images.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In HTML files images are stored somewhere else and reference, if you check the log it may indicate where, but you can also specify the path in the ODS HTML statements or make sure you keep the file and the images together.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTML5 is a much quicker fix &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/46599"&gt;@DougZ&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I want the chart to be visible in an HTML page, but only get&amp;nbsp;a tiny icon in the&amp;nbsp;upper left corner&amp;nbsp;in the HTML file, labeled "The SGPANEL Procedure".&amp;nbsp; I'm on Linux, SAS 9.4 TS1M3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;     ods html file="&amp;amp;outdir/&amp;amp;sgplot_report_file";
    *********************************************************;
    * Plot quantities by categories;
    *********************************************************;
    title "&amp;amp;wfs_csv_file";
    title2   height=7pt "%sysfunc(today(),date9.), %sysfunc(time(),hhmm5.)";

    proc sgpanel data=work.sgplot_prep;
        label orig_face = "Orig Face"
              holding = "Holding";
        panelby agency / columns=3;
        rowaxis  values=(-20000 to 20000 by 5000)
                 tickvalueformat=comma7.
                 offsetmin=0.05
                 offsetmax=0.05
                 valueshint
                 label="$Million";
        vbar security_type /response = orig_face;
        vbar security_type /response = holding  transparency=0.50;
    run;

    ods html close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 19:48:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-get-SGPANEL-to-write-HTML-output/m-p/440998#M15215</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-28T19:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get SGPANEL to write HTML output</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-get-SGPANEL-to-write-HTML-output/m-p/440999#M15216</link>
      <description>&lt;P&gt;The problem is in your file specification. For HTML output, don't put the path in the FILE option. Also, you typically do not want the path to be written to the SRC option on the &amp;lt;img&amp;gt; tag, unless you are creating an directory structure for your HTML output. Therefore, I think this specification might work best for you:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token statement"&gt;ods&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;html&lt;/SPAN&gt; path="&amp;amp;outdir" (url=none) &lt;SPAN class="token statement"&gt;file&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"&amp;amp;sgplot_report_file"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 19:52:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-get-SGPANEL-to-write-HTML-output/m-p/440999#M15216</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-02-28T19:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get SGPANEL to write HTML output</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-get-SGPANEL-to-write-HTML-output/m-p/441003#M15217</link>
      <description>&lt;P&gt;Reeza, how do I specify HTML5 for something like this?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 20:28:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-get-SGPANEL-to-write-HTML-output/m-p/441003#M15217</guid>
      <dc:creator>DougZ</dc:creator>
      <dc:date>2018-02-28T20:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to get SGPANEL to write HTML output</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-get-SGPANEL-to-write-HTML-output/m-p/441005#M15218</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sgpanel_msg.PNG" style="width: 326px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18895iCB0626B92ED5CC0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="sgpanel_msg.PNG" alt="sgpanel_msg.PNG" /&gt;&lt;/span&gt;Thanks Dan - just pasted your ods line into the code and ran, but got the same result.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 20:30:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-get-SGPANEL-to-write-HTML-output/m-p/441005#M15218</guid>
      <dc:creator>DougZ</dc:creator>
      <dc:date>2018-02-28T20:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get SGPANEL to write HTML output</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-get-SGPANEL-to-write-HTML-output/m-p/441006#M15219</link>
      <description>&lt;P&gt;Is the separate image being created?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 20:32:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-get-SGPANEL-to-write-HTML-output/m-p/441006#M15219</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-02-28T20:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get SGPANEL to write HTML output</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-get-SGPANEL-to-write-HTML-output/m-p/441007#M15220</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;     ods html5 file="&amp;amp;outdir/&amp;amp;sgplot_report_file";
    *********************************************************;
    * Plot quantities by categories;
    *********************************************************;
    title "&amp;amp;wfs_csv_file";
    title2   height=7pt "%sysfunc(today(),date9.), %sysfunc(time(),hhmm5.)";

    proc sgpanel data=work.sgplot_prep;
        label orig_face = "Orig Face"
              holding = "Holding";
        panelby agency / columns=3;
        rowaxis  values=(-20000 to 20000 by 5000)
                 tickvalueformat=comma7.
                 offsetmin=0.05
                 offsetmax=0.05
                 valueshint
                 label="$Million";
        vbar security_type /response = orig_face;
        vbar security_type /response = holding  transparency=0.50;
    run;

    ods html5 close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Does this work?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 20:34:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-get-SGPANEL-to-write-HTML-output/m-p/441007#M15220</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-28T20:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to get SGPANEL to write HTML output</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-get-SGPANEL-to-write-HTML-output/m-p/441010#M15221</link>
      <description>&lt;P&gt;Dan - a separate png file was created, but the HTML page had just the icon in the upper left and the label.&amp;nbsp; However, I did combine both your ODS line suggestion and Reeza's HTML5 suggestion, and it works now!&amp;nbsp; THANKS to you and Reeza.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18896i542DECA27B82A911/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 20:40:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-get-SGPANEL-to-write-HTML-output/m-p/441010#M15221</guid>
      <dc:creator>DougZ</dc:creator>
      <dc:date>2018-02-28T20:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to get SGPANEL to write HTML output</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-get-SGPANEL-to-write-HTML-output/m-p/441011#M15222</link>
      <description>&lt;P&gt;Reeza - pls see my message to Dan... your suggestion + his suggestion together worked.&amp;nbsp; THANK YOU!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 20:42:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-get-SGPANEL-to-write-HTML-output/m-p/441011#M15222</guid>
      <dc:creator>DougZ</dc:creator>
      <dc:date>2018-02-28T20:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get SGPANEL to write HTML output</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-get-SGPANEL-to-write-HTML-output/m-p/441012#M15223</link>
      <description>&lt;P&gt;For completeness, let me explain why HTML5 is working for you. By default in HTML5 output, ODS Graphics is generated as an inlined SVG output instead of an image (which can also be inlined with HTML5 using an option). Therefore, the separate PATH and (URL=NONE) had no effect on the graph output -- just on where the HTML file was written. I'm still curious as to why the other statement did not put the information in your SRC option of your &amp;lt;img&amp;gt; tag. Do you happen to still have that file around? If so, can you post the &amp;lt;img&amp;gt; tag so that I can see what was written in the SRC option?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 20:48:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-get-SGPANEL-to-write-HTML-output/m-p/441012#M15223</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-02-28T20:48:41Z</dc:date>
    </item>
  </channel>
</rss>

