<?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: Improving barchart style in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Improving-barchart-style/m-p/851937#M23392</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table have as
select sex,status,bp_status,sum(weight) as weight
 from sashelp.heart(obs=50)
  group by sex,status,bp_status;
quit;

proc sgpanel data=have ;
title 'XXXXXXXXXXXXXXXX';
panelby sex/spacing=20 columns=1 noborder noheader;
inset sex/nolabel position=nw textattrs=(size=20) ;
scatter y=status x=weight/group=bp_status markerattrs=(symbol=circlefilled size=28 ) 
                          groupdisplay=cluster transparency=0.3;

hbarparm category=status response=weight/group=bp_status groupdisplay=cluster 
                                         barwidth=0.8 nooutline name='a';

scatter y=status x=weight/group=bp_status markerattrs=(symbol=circlefilled size=28 color=graydd) 
                          groupdisplay=cluster transparency=0.3 ;

scatter y=status x=weight/group=bp_status markerchar=weight  groupdisplay=cluster 
                          markercharattrs=(color=black weight=bold);

rowaxis offsetmin=0.4;
colaxis display=none;
keylegend 'a' /position=top noborder;
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-1672749320146.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79006iF8F742E39DE168ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1672749320146.png" alt="Ksharp_0-1672749320146.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jan 2023 12:35:51 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2023-01-03T12:35:51Z</dc:date>
    <item>
      <title>Improving barchart style</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Improving-barchart-style/m-p/851916#M23391</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;SAS published the booklet: How to solve the data science skills shortage&lt;/P&gt;
&lt;P&gt;in which a few bar charts are displayed.&lt;/P&gt;
&lt;P&gt;I was wondering how to reproduce some of the style using SAS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. In this graph, there are two subgraphs with subtitles&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph1.JPG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78998i36C018DBA235F7B2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="graph1.JPG" alt="graph1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. In this graph both title, and legend are aligned with the y-axis.&lt;/P&gt;
&lt;P&gt;3. The bars are rounded at their end and statistics within the bars are rounded.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph2.JPG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78999i6434C672286209DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="graph2.JPG" alt="graph2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 10:31:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Improving-barchart-style/m-p/851916#M23391</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2023-01-03T10:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Improving barchart style</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Improving-barchart-style/m-p/851937#M23392</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table have as
select sex,status,bp_status,sum(weight) as weight
 from sashelp.heart(obs=50)
  group by sex,status,bp_status;
quit;

proc sgpanel data=have ;
title 'XXXXXXXXXXXXXXXX';
panelby sex/spacing=20 columns=1 noborder noheader;
inset sex/nolabel position=nw textattrs=(size=20) ;
scatter y=status x=weight/group=bp_status markerattrs=(symbol=circlefilled size=28 ) 
                          groupdisplay=cluster transparency=0.3;

hbarparm category=status response=weight/group=bp_status groupdisplay=cluster 
                                         barwidth=0.8 nooutline name='a';

scatter y=status x=weight/group=bp_status markerattrs=(symbol=circlefilled size=28 color=graydd) 
                          groupdisplay=cluster transparency=0.3 ;

scatter y=status x=weight/group=bp_status markerchar=weight  groupdisplay=cluster 
                          markercharattrs=(color=black weight=bold);

rowaxis offsetmin=0.4;
colaxis display=none;
keylegend 'a' /position=top noborder;
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-1672749320146.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79006iF8F742E39DE168ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1672749320146.png" alt="Ksharp_0-1672749320146.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 12:35:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Improving-barchart-style/m-p/851937#M23392</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-01-03T12:35:51Z</dc:date>
    </item>
  </channel>
</rss>

