<?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: Plot donation progress tracker in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Plot-donation-progress-tracker/m-p/897467#M24136</link>
    <description>&lt;P&gt;Here is another variation on&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;'s solution, where it shrinks the width of the overlaid bar chart. I kind of like having that bar be a little smaller. It still gives you the benefit of superimposing the charts, but they still look distinct. Either will work fine. I just showing some possibilities...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=have;
   vbar site /response=target datalabel fillattr=(color=green);
   vbar site /response=collected datalabel=pctofgoal barwidth=.4
              fillattrs=(color=yellow transparency=0.5);
   yaxis label='Amount';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 05 Oct 2023 20:00:54 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2023-10-05T20:00:54Z</dc:date>
    <item>
      <title>Plot donation progress tracker</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plot-donation-progress-tracker/m-p/897453#M24134</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;I wonder if there is an easy way to produce bar plots that track donation progress? Suppose there are 3 sites 1,2,3 which finish certain percentages of their fundraising target e.g 3k out of 5k, 5k out of 10k and 7k out of 10k. I hope to plot 3 bars and the height of each bar represents the target. Inside each bar, it shows the amount already raised (with a different color) as well as the percentage.&amp;nbsp; Data is easy but not sure how to plot it in SAS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 18:56:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plot-donation-progress-tracker/m-p/897453#M24134</guid>
      <dc:creator>Peter_Y</dc:creator>
      <dc:date>2023-10-05T18:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Plot donation progress tracker</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plot-donation-progress-tracker/m-p/897459#M24135</link>
      <description>&lt;P&gt;It really helps to have actual data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is some data and one way to plot something I hope is at least similar to what you want.&lt;/P&gt;
&lt;PRE&gt;data have;
   input site $ collected target;
   pctofgoal= collected/target;
   format pctofgoal percent8.;
   label target='Target' 
         collected='Collected to Date'
   ;
datalines;
AAA   7000 10000
BBB   4000 8000
CCC   10000 8000
;

proc sgplot data=have;
   vbar site /response=target datalabel fillattrs=(color=red transparency=.3);
   vbar site /response=collected datalabel=pctofgoal fillattrs=(color=green transparency=.3);
   yaxis label='Amount';
run;
&lt;/PRE&gt;
&lt;P&gt;Transparency settings allow colors to combine a bit so you can see the two bars superimposed. I included one example with the amount collected larger than the target so you could see what that might do.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 19:18:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plot-donation-progress-tracker/m-p/897459#M24135</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-10-05T19:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Plot donation progress tracker</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plot-donation-progress-tracker/m-p/897467#M24136</link>
      <description>&lt;P&gt;Here is another variation on&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;'s solution, where it shrinks the width of the overlaid bar chart. I kind of like having that bar be a little smaller. It still gives you the benefit of superimposing the charts, but they still look distinct. Either will work fine. I just showing some possibilities...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=have;
   vbar site /response=target datalabel fillattr=(color=green);
   vbar site /response=collected datalabel=pctofgoal barwidth=.4
              fillattrs=(color=yellow transparency=0.5);
   yaxis label='Amount';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Oct 2023 20:00:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plot-donation-progress-tracker/m-p/897467#M24136</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2023-10-05T20:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Plot donation progress tracker</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plot-donation-progress-tracker/m-p/897523#M24137</link>
      <description>&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2014/07/27/overlay-bar-charts/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2014/07/27/overlay-bar-charts/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2013/01/21/bar-chart-with-target-and-attribute-map/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2013/01/21/bar-chart-with-target-and-attribute-map/&lt;/A&gt;</description>
      <pubDate>Fri, 06 Oct 2023 04:01:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plot-donation-progress-tracker/m-p/897523#M24137</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-10-06T04:01:04Z</dc:date>
    </item>
  </channel>
</rss>

