<?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 How to create a stacked waterfall chart in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-stacked-waterfall-chart/m-p/121071#M4688</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to know how I can create a stacked waterfall chart using proc template (waterfallchart) and sgrender.&amp;nbsp; I can use another graphing procedure if it allows me to save the image as a file (I use this image for a website).&amp;nbsp; I have seen the other approaches (clear/white bar chart, also using annotate with gplot) but those seem to be workarounds before the waterfall chart option in 9.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data consists of stages (aka categories, 4 of them) and types (2) of them.&amp;nbsp; Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For reference, here is the data as well as procedures.&amp;nbsp; The final output should look something like the picture attached (the values do not match the datasets below, ignore that).&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Categories with stacked types&lt;/LI&gt;&lt;LI&gt;Labels for size of bars&lt;/LI&gt;&lt;LI&gt;Can save as image file for use elsewhere&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA (ignore the differences in stage values, I merely changed the values even though the four possibilities remain the same)&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 232px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="76"&gt;&lt;STRONG&gt;stage&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="115"&gt;&lt;STRONG&gt;type&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="41"&gt;&lt;STRONG&gt;value&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;Prev. Open&lt;/TD&gt;&lt;TD class="xl63"&gt;Non-Audit/Comp&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;Prev. Open&lt;/TD&gt;&lt;TD class="xl63"&gt;Audit/Comp&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;New&lt;/TD&gt;&lt;TD class="xl63"&gt;Non-Audit/Comp&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;New&lt;/TD&gt;&lt;TD class="xl63"&gt;Audit/Comp&lt;/TD&gt;&lt;TD align="right"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;Completed&lt;/TD&gt;&lt;TD class="xl63"&gt;Audit/Comp&lt;/TD&gt;&lt;TD align="right"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;Completed&lt;/TD&gt;&lt;TD class="xl63"&gt;Non-Audit/Comp&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;Remaining&lt;/TD&gt;&lt;TD class="xl63"&gt;Audit/Comp&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;Remaining&lt;/TD&gt;&lt;TD class="xl63"&gt;Non-Audit/Comp&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;DATA USED IN PROC TEMPLATE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 144px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="106"&gt;&lt;STRONG&gt;stage&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="17"&gt;&lt;STRONG&gt;N&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="21"&gt;&lt;STRONG&gt;Y&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;outstanding_prj&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;new_prj&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;TD align="right"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;completed_prj&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;remaining_prj&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;PROC TEMPLATE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;%let opts = linearopts=(viewmin=0 viewmax=&amp;amp;max_hght tickvaluesequence=(start=0 end=&amp;amp;max_hght increment=5));* tickvaluelist=(-0.1 0 0.1)) offsetmin=0.1 offsetmax=0.1;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;proc template;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define statgraph waterfallchart;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; begingraph;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layout overlay / yaxisopts=(&amp;amp;opts);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; waterfallchart category=stage response=total /&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; colorgroup=type barlabel=true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; display=(fill)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="Project Throughput" dataskin=gloss;* filltype=gradient;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endlayout;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; endgraph;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;ODS Rendering&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ods html path="&amp;amp;base_rpt" (url=none);&lt;/P&gt;&lt;P&gt;ods graphics / width=300px reset=index imagename="DP_water_&amp;amp;dt._" ;&lt;/P&gt;&lt;P&gt;proc sgrender data=wf_dp template=waterfallchart;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11061iB4A3F918F82BB816/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="stacked waterfall.jpg" title="stacked waterfall.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Oct 2013 16:18:06 GMT</pubDate>
    <dc:creator>BenB</dc:creator>
    <dc:date>2013-10-23T16:18:06Z</dc:date>
    <item>
      <title>How to create a stacked waterfall chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-stacked-waterfall-chart/m-p/121071#M4688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to know how I can create a stacked waterfall chart using proc template (waterfallchart) and sgrender.&amp;nbsp; I can use another graphing procedure if it allows me to save the image as a file (I use this image for a website).&amp;nbsp; I have seen the other approaches (clear/white bar chart, also using annotate with gplot) but those seem to be workarounds before the waterfall chart option in 9.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data consists of stages (aka categories, 4 of them) and types (2) of them.&amp;nbsp; Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For reference, here is the data as well as procedures.&amp;nbsp; The final output should look something like the picture attached (the values do not match the datasets below, ignore that).&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Categories with stacked types&lt;/LI&gt;&lt;LI&gt;Labels for size of bars&lt;/LI&gt;&lt;LI&gt;Can save as image file for use elsewhere&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA (ignore the differences in stage values, I merely changed the values even though the four possibilities remain the same)&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 232px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="76"&gt;&lt;STRONG&gt;stage&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="115"&gt;&lt;STRONG&gt;type&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="41"&gt;&lt;STRONG&gt;value&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;Prev. Open&lt;/TD&gt;&lt;TD class="xl63"&gt;Non-Audit/Comp&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;Prev. Open&lt;/TD&gt;&lt;TD class="xl63"&gt;Audit/Comp&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;New&lt;/TD&gt;&lt;TD class="xl63"&gt;Non-Audit/Comp&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;New&lt;/TD&gt;&lt;TD class="xl63"&gt;Audit/Comp&lt;/TD&gt;&lt;TD align="right"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;Completed&lt;/TD&gt;&lt;TD class="xl63"&gt;Audit/Comp&lt;/TD&gt;&lt;TD align="right"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;Completed&lt;/TD&gt;&lt;TD class="xl63"&gt;Non-Audit/Comp&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;Remaining&lt;/TD&gt;&lt;TD class="xl63"&gt;Audit/Comp&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;Remaining&lt;/TD&gt;&lt;TD class="xl63"&gt;Non-Audit/Comp&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;DATA USED IN PROC TEMPLATE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 144px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="106"&gt;&lt;STRONG&gt;stage&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="17"&gt;&lt;STRONG&gt;N&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="21"&gt;&lt;STRONG&gt;Y&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;outstanding_prj&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;new_prj&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;TD align="right"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;completed_prj&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;remaining_prj&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;PROC TEMPLATE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;%let opts = linearopts=(viewmin=0 viewmax=&amp;amp;max_hght tickvaluesequence=(start=0 end=&amp;amp;max_hght increment=5));* tickvaluelist=(-0.1 0 0.1)) offsetmin=0.1 offsetmax=0.1;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;proc template;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define statgraph waterfallchart;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; begingraph;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layout overlay / yaxisopts=(&amp;amp;opts);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; waterfallchart category=stage response=total /&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; colorgroup=type barlabel=true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; display=(fill)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="Project Throughput" dataskin=gloss;* filltype=gradient;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endlayout;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; endgraph;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;ODS Rendering&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ods html path="&amp;amp;base_rpt" (url=none);&lt;/P&gt;&lt;P&gt;ods graphics / width=300px reset=index imagename="DP_water_&amp;amp;dt._" ;&lt;/P&gt;&lt;P&gt;proc sgrender data=wf_dp template=waterfallchart;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11061iB4A3F918F82BB816/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="stacked waterfall.jpg" title="stacked waterfall.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 16:18:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-stacked-waterfall-chart/m-p/121071#M4688</guid>
      <dc:creator>BenB</dc:creator>
      <dc:date>2013-10-23T16:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a stacked waterfall chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-stacked-waterfall-chart/m-p/121072#M4689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bump! I feel the OP, tired of "clear/white bar", wanting to know if there are other ways.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 22:04:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-stacked-waterfall-chart/m-p/121072#M4689</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2013-10-23T22:04:46Z</dc:date>
    </item>
  </channel>
</rss>

