<?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 do I create an XAXISTABLE with a transparent background inside of an SGPLOT? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-create-an-XAXISTABLE-with-a-transparent-background/m-p/352617#M12229</link>
    <description>&lt;P&gt;Using your HTML setting and a style with a background image, I place the axis table inside the graph. &amp;nbsp;There is a trick to make the background of the axis table transparent as shown below in the code. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8505i84BCA087C0D80CC8/image-size/medium?v=1.0&amp;amp;px=-1" border="0" alt="Transparent.png" title="Transparent.png" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc template;&lt;BR /&gt;&amp;nbsp; define style styles.background;&lt;BR /&gt;&amp;nbsp; parent=styles.htmlBlue;&lt;BR /&gt;&amp;nbsp; style body from body /&lt;BR /&gt;&amp;nbsp; &amp;nbsp; watermark=on&lt;BR /&gt;&amp;nbsp; &amp;nbsp; backgroundimage='c:\Work\4K_Images\HOT_Balloon_Only_900.png';&lt;BR /&gt;&amp;nbsp; end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods html style=styles.background;&lt;BR /&gt;ods graphics/ reset border=off;&lt;BR /&gt;proc sgplot data=sashelp.cars nowall noborder noopaque pad=0;&lt;BR /&gt;&amp;nbsp; vbar type / response=mpg_city stat=mean;&lt;BR /&gt;&amp;nbsp; xaxistable mpg_city / stat=mean valueattrs=(size=16) location=inside positioin=bottom;&lt;BR /&gt;&amp;nbsp; &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;xaxis colorbands=odd colorbandattrs=(transparency=1);&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;run;&lt;BR /&gt;ods html close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This places the xaxistable inside the data area, using an "InnerMargin" on the bottom of the container. &amp;nbsp;This inner margin has an opaque background by default. &amp;nbsp;Requesting COLORBANDS on the x-axis makes the inner margin transparent. &amp;nbsp;Since I don't really want the color bands, I set them to fully transparent. &amp;nbsp;Yes, we are planning on a a "real" option to do this in next release.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 23 Apr 2017 17:49:42 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2017-04-23T17:49:42Z</dc:date>
    <item>
      <title>How do I create an XAXISTABLE with a transparent background inside of an SGPLOT?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-create-an-XAXISTABLE-with-a-transparent-background/m-p/351862#M12222</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to create a needle SGPLOT in SAS 9.4M3 with both of the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;An XAXISTABLE inside of the graphic's XAXIS area&amp;nbsp;(location=inside)&lt;/LI&gt;&lt;LI&gt;A transparent background for the entire graphic (as normally accomplished with the noopaque SGPLOT option)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is not whether or not this is possible (I understand there can be an SGANNO work-around). &amp;nbsp;My question is whether or not there is a simple solution that will produce an XAXISTABLE inside the XAXIS area with a transparent/noopaque background.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I submit&amp;nbsp;the following code, I expect that my XAXISTABLE will follow the&amp;nbsp;noopaque option, but it does not. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html;
data dateCounts;
&amp;nbsp;do date="01JAN2017"d to "31DEC2017"d by 1;
&amp;nbsp; &amp;nbsp; count=floor(101*rand("uniform"));
&amp;nbsp; &amp;nbsp; output;
&amp;nbsp; end;
run;

ods graphics/ border=off width=9in height=5.0625in;

proc sgplot data=dateCounts nowall noborder noopaque pad=0;
&amp;nbsp; needle x=date y=count/ lineattrs=(color=grey thickness=2);
&amp;nbsp; &amp;nbsp; xaxis display=(nolabel noline noticks) valueattrs=(family=garamond color=gray size=8) interval=month ;
&amp;nbsp; &amp;nbsp; yaxis display=(nolabel noline noticks) values=(0 50 100) valueattrs=(family=garamond color=gray size=8);
&amp;nbsp; &amp;nbsp; refline 25 50 75 100/axis=y lineattrs=(color=white thickness=1 ) transparency=0.57;
&amp;nbsp; xaxistable count / nolabel location=inside position=bottom pad=0 valueattrs=(family=garamond color=gray size=16);
format date monyy5. count comma9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: If I use the 'location=outside' option in the XAXISTABLE statement, the resulting background will be completely transparent, but I'd rather keep the XAXISTABLE with a 'location=inside' if it is possible to do so with a transparent background. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chad&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 19:10:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-create-an-XAXISTABLE-with-a-transparent-background/m-p/351862#M12222</guid>
      <dc:creator>coliver32</dc:creator>
      <dc:date>2017-04-20T19:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create an XAXISTABLE with a transparent background inside of an SGPLOT?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-create-an-XAXISTABLE-with-a-transparent-background/m-p/351865#M12223</link>
      <description>Hi: This might be answered more quickly if you posted the question in the ODS Graphics and SAS/GRAPH forum.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Thu, 20 Apr 2017 19:14:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-create-an-XAXISTABLE-with-a-transparent-background/m-p/351865#M12223</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-04-20T19:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create an XAXISTABLE with a transparent background inside of an SGPLOT?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-create-an-XAXISTABLE-with-a-transparent-background/m-p/352617#M12229</link>
      <description>&lt;P&gt;Using your HTML setting and a style with a background image, I place the axis table inside the graph. &amp;nbsp;There is a trick to make the background of the axis table transparent as shown below in the code. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8505i84BCA087C0D80CC8/image-size/medium?v=1.0&amp;amp;px=-1" border="0" alt="Transparent.png" title="Transparent.png" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc template;&lt;BR /&gt;&amp;nbsp; define style styles.background;&lt;BR /&gt;&amp;nbsp; parent=styles.htmlBlue;&lt;BR /&gt;&amp;nbsp; style body from body /&lt;BR /&gt;&amp;nbsp; &amp;nbsp; watermark=on&lt;BR /&gt;&amp;nbsp; &amp;nbsp; backgroundimage='c:\Work\4K_Images\HOT_Balloon_Only_900.png';&lt;BR /&gt;&amp;nbsp; end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods html style=styles.background;&lt;BR /&gt;ods graphics/ reset border=off;&lt;BR /&gt;proc sgplot data=sashelp.cars nowall noborder noopaque pad=0;&lt;BR /&gt;&amp;nbsp; vbar type / response=mpg_city stat=mean;&lt;BR /&gt;&amp;nbsp; xaxistable mpg_city / stat=mean valueattrs=(size=16) location=inside positioin=bottom;&lt;BR /&gt;&amp;nbsp; &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;xaxis colorbands=odd colorbandattrs=(transparency=1);&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;run;&lt;BR /&gt;ods html close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This places the xaxistable inside the data area, using an "InnerMargin" on the bottom of the container. &amp;nbsp;This inner margin has an opaque background by default. &amp;nbsp;Requesting COLORBANDS on the x-axis makes the inner margin transparent. &amp;nbsp;Since I don't really want the color bands, I set them to fully transparent. &amp;nbsp;Yes, we are planning on a a "real" option to do this in next release.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2017 17:49:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-create-an-XAXISTABLE-with-a-transparent-background/m-p/352617#M12229</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-04-23T17:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create an XAXISTABLE with a transparent background inside of an SGPLOT?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-create-an-XAXISTABLE-with-a-transparent-background/m-p/352726#M12235</link>
      <description>&lt;P&gt;Never knew about the backgroundimage attribute in proc template. Very cool &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13856"&gt;@Jay54&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Has this been a part of proc template for long?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 05:38:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-create-an-XAXISTABLE-with-a-transparent-background/m-p/352726#M12235</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-04-24T05:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create an XAXISTABLE with a transparent background inside of an SGPLOT?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-create-an-XAXISTABLE-with-a-transparent-background/m-p/352816#M12238</link>
      <description>Hi:&lt;BR /&gt;  Backgroundimage has been part of PROC TEMPLATE for ODS HTML for a long time (since SAS 8). Backgroundimage and WATERMARK have not always been supported in other destinations, but for ODS HTML, it has been available.&lt;BR /&gt; &lt;BR /&gt;cynthia</description>
      <pubDate>Mon, 24 Apr 2017 12:40:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-create-an-XAXISTABLE-with-a-transparent-background/m-p/352816#M12238</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-04-24T12:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create an XAXISTABLE with a transparent background inside of an SGPLOT?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-create-an-XAXISTABLE-with-a-transparent-background/m-p/352840#M12239</link>
      <description>&lt;P&gt;Personally, I avoid placing images in the background as they distract from the data in the graph. &amp;nbsp;This was done to illustrate a coding technique. &amp;nbsp;Even simple gradients can be detrimental as group colors can look different over different background colors. &amp;nbsp;This likely falls in Tufte's "Chart Junk" category.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 13:26:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-create-an-XAXISTABLE-with-a-transparent-background/m-p/352840#M12239</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-04-24T13:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create an XAXISTABLE with a transparent background inside of an SGPLOT?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-create-an-XAXISTABLE-with-a-transparent-background/m-p/352859#M12240</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13856"&gt;@Jay54&lt;/a&gt;! - Just the type of solution I was looking for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp; next time I will make sure to file my post within the most appropriate board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chad&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 13:54:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-create-an-XAXISTABLE-with-a-transparent-background/m-p/352859#M12240</guid>
      <dc:creator>coliver32</dc:creator>
      <dc:date>2017-04-24T13:54:45Z</dc:date>
    </item>
  </channel>
</rss>

