<?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: Colaxistable options to fix in the graph issues in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Colaxistable-options-to-fix-in-the-graph-issues/m-p/792849#M22533</link>
    <description>&lt;P&gt;As said&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp; ,post some data ,so we can test your code and replicate your problem.&lt;/P&gt;
&lt;P&gt;Without data ,I would not to waste my time to give a try.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 set sashelp.heart;
run;

proc sql;
create table final as
select bp_status,sex,status,count(*) as weight
 from have
  group by bp_status,sex,status;
quit;
data final;
 set final end=last;
 by bp_status sex ;
 class_var='Total Subject';
 if first.sex then do;
   if sex='Female' then tot=120;
    else tot=80;
 end;
run;



Option missing=' ';
proc sgpanel data=final ;
panelby bp_status / layout=columnlattice
onepanel noborder novarname
colheaderpos=bottom headerattrs=(size=7.5) spacing=10;

vbarbasic sex / response=weight group=status barwidth=1.0;
colaxistable tot/class=class_var;

colaxis display=(nolabel);
rowaxis  label='Percentage of Subjects with Reactions' ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1643290459607.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67924i3586C9E41267F65C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1643290459607.png" alt="Ksharp_0-1643290459607.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jan 2022 13:34:32 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2022-01-27T13:34:32Z</dc:date>
    <item>
      <title>Colaxistable options to fix in the graph issues</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Colaxistable-options-to-fix-in-the-graph-issues/m-p/792551#M22531</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;In figure 1&lt;/U&gt;&lt;/STRONG&gt; , i want to remove extra space(highlighted in blue) below the total subjects . Iam fixing with padding option but its not working. Is there any option available to remove extra space?&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;In figure 2,&lt;/STRONG&gt;&lt;/U&gt; Line is getting stripped off after colaxistable which is highlighted in yellow . I want the line to represent same as figure 1 line as a panel line for each treatment. How to fix to get the line back?&lt;/P&gt;
&lt;P&gt;Here is the code iam using&amp;nbsp; :&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;CODE:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc sgpanel data=chk ;&lt;BR /&gt;by rowlbl;&lt;BR /&gt;panelby tptn / layout=columnlattice&lt;BR /&gt;onepanel noborder novarname&lt;BR /&gt;colheaderpos=bottom headerattrs=(size=7.5) spacing=10;&lt;BR /&gt;format tptn tptf.;&lt;/P&gt;
&lt;P&gt;vbarbasic trtn / response=percent group=grade barwidth=1.0; &lt;BR /&gt;format trtn trt2f.;&lt;BR /&gt;colaxistable tot/NOMISSINGCHAR class=class_var pad=(bottom=10px);&lt;/P&gt;
&lt;P&gt;colaxis display=(nolabel);&lt;BR /&gt;rowaxis values=(0 to 100 by 10) label='Percentage of Subjects with Reactions' ;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;FIgure1:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Inkedimg1_LI.jpg" style="width: 766px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67854i44AD10AE71D6E505/image-size/large?v=v2&amp;amp;px=999" role="button" title="Inkedimg1_LI.jpg" alt="Inkedimg1_LI.jpg" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Figure 2:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cap2.PNG" style="width: 890px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67853i7D9BB899BDC28540/image-size/large?v=v2&amp;amp;px=999" role="button" title="Cap2.PNG" alt="Cap2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Mounika&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 17:11:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Colaxistable-options-to-fix-in-the-graph-issues/m-p/792551#M22531</guid>
      <dc:creator>mounikag</dc:creator>
      <dc:date>2022-01-26T17:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Colaxistable options to fix in the graph issues</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Colaxistable-options-to-fix-in-the-graph-issues/m-p/792692#M22532</link>
      <description>&lt;P&gt;Data sure would be nice so we can test code.&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the &amp;lt;/&amp;gt; icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;If you are using custom formats with any of the variables then definition code for the formats also.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your graphics settings from ODS Graphics may be needed. My size for a graph might "work" but not with your settings or image types.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The actual ODS Style in effect may be needed as that effects things like line appearance plus the ODS destination, the SAS results window, PDF, RTF, or other destination.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And sometimes it may be time to consider the Graphic Template Language, which takes some learning but provides more low-level tools to control things.(Go the Results tab to see the graphs in these examples, each has data and code to build the graph, often with options you may not want [yet] )&lt;/P&gt;
&lt;P&gt;This shows a different approach to side by side groups of bars with similar subgroups: &lt;A href="https://support.sas.com/kb/49/695.html" target="_blank"&gt;https://support.sas.com/kb/49/695.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or different subgroups &lt;A href="https://support.sas.com/kb/39/166.html" target="_blank"&gt;https://support.sas.com/kb/39/166.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 21:52:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Colaxistable-options-to-fix-in-the-graph-issues/m-p/792692#M22532</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-01-26T21:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Colaxistable options to fix in the graph issues</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Colaxistable-options-to-fix-in-the-graph-issues/m-p/792849#M22533</link>
      <description>&lt;P&gt;As said&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp; ,post some data ,so we can test your code and replicate your problem.&lt;/P&gt;
&lt;P&gt;Without data ,I would not to waste my time to give a try.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 set sashelp.heart;
run;

proc sql;
create table final as
select bp_status,sex,status,count(*) as weight
 from have
  group by bp_status,sex,status;
quit;
data final;
 set final end=last;
 by bp_status sex ;
 class_var='Total Subject';
 if first.sex then do;
   if sex='Female' then tot=120;
    else tot=80;
 end;
run;



Option missing=' ';
proc sgpanel data=final ;
panelby bp_status / layout=columnlattice
onepanel noborder novarname
colheaderpos=bottom headerattrs=(size=7.5) spacing=10;

vbarbasic sex / response=weight group=status barwidth=1.0;
colaxistable tot/class=class_var;

colaxis display=(nolabel);
rowaxis  label='Percentage of Subjects with Reactions' ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1643290459607.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67924i3586C9E41267F65C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1643290459607.png" alt="Ksharp_0-1643290459607.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 13:34:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Colaxistable-options-to-fix-in-the-graph-issues/m-p/792849#M22533</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-01-27T13:34:32Z</dc:date>
    </item>
  </channel>
</rss>

