<?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: Stacked, Grouped Bar Chart with Multiple Y2-Axis lines in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/108104#M4034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi lacrefa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the link. I am aware of the vast standard charting capabilities of SAS, and I do not know how to put spaces in the xaxis using gbarline, there is not option for grouping. I am not a new SAS programmer, but SG and GTL I am not familiar with it at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;CPAZ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Aug 2012 15:45:37 GMT</pubDate>
    <dc:creator>CPAZ</dc:creator>
    <dc:date>2012-08-30T15:45:37Z</dc:date>
    <item>
      <title>Stacked, Grouped Bar Chart with Multiple Y2-Axis lines</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/108098#M4028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi All,&lt;/P&gt;&lt;P&gt;Is it possible to re-create this chart in SAS. It was made in Excel. I need to incorporate drill down and some other things but can't do it in Excel. I have looked around in the docs, but did not see anything like this. Oh by the way need the spaces between groups. The groupa are from left to right: weeks, quarters, half years. I appreciate the help. I am running SAS 9.2 on windows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Example.png" class="jive-image-thumbnail jive-image" height="294" src="https://communities.sas.com/legacyfs/online/2436_Example.png" width="588" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 01:59:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/108098#M4028</guid>
      <dc:creator>CPAZ</dc:creator>
      <dc:date>2012-08-30T01:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked, Grouped Bar Chart with Multiple Y2-Axis lines</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/108099#M4029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe this could be made using 9.2 SG or GTL.&amp;nbsp; Can you attach your data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 12:51:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/108099#M4029</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2012-08-30T12:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked, Grouped Bar Chart with Multiple Y2-Axis lines</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/108100#M4030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&lt;/P&gt;&lt;P&gt;I suppose with many customization you can use this sample provided by SAS :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/graphref/63022/HTML/default/viewer.htm#a003171144.htm"&gt;http://support.sas.com/documentation/cdl/en/graphref/63022/HTML/default/viewer.htm#a003171144.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I depend also which SAS tool you use (EG,Add-ins, SAS Foundation, SAS graph, Web Report Studio ) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 14:01:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/108100#M4030</guid>
      <dc:creator>lacrefa</dc:creator>
      <dc:date>2012-08-30T14:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked, Grouped Bar Chart with Multiple Y2-Axis lines</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/108101#M4031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CPAZ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a too busy graph and dual scale graphs are not good dataviz practice.&amp;nbsp; I recommend that you split it into two smaller graphs - one for count and another for percent.&amp;nbsp; Retain the same colours in both graphs for each group to reduce the amount of legend and use fewer tick marks on the axes to reduce the busyness.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 15:35:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/108101#M4031</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2012-08-30T15:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked, Grouped Bar Chart with Multiple Y2-Axis lines</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/108102#M4032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" href="https://communities.sas.com/mailto:Sanjay@SAS"&gt;Sanjay@SAS&lt;/A&gt;. Thanks. I have attached the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help you can provide.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 15:39:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/108102#M4032</guid>
      <dc:creator>CPAZ</dc:creator>
      <dc:date>2012-08-30T15:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked, Grouped Bar Chart with Multiple Y2-Axis lines</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/108103#M4033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. Unfortunately separating the graphs is not an option. This kind of graph is commonly used in my company, so the audience is well aware on how to read the graph. It gives them the most amount of information in a single graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CPAZ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 15:41:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/108103#M4033</guid>
      <dc:creator>CPAZ</dc:creator>
      <dc:date>2012-08-30T15:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked, Grouped Bar Chart with Multiple Y2-Axis lines</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/108104#M4034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi lacrefa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the link. I am aware of the vast standard charting capabilities of SAS, and I do not know how to put spaces in the xaxis using gbarline, there is not option for grouping. I am not a new SAS programmer, but SG and GTL I am not familiar with it at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;CPAZ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 15:45:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/108104#M4034</guid>
      <dc:creator>CPAZ</dc:creator>
      <dc:date>2012-08-30T15:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked, Grouped Bar Chart with Multiple Y2-Axis lines</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/108105#M4035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is your graph using SAS 9.2 SGPLOT procedure.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="StackedBarLine_SG.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2444_StackedBarLine_SG.png" /&gt;&lt;/P&gt;&lt;P&gt;SAS 9.2 SGPLOT Code is straightforward:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods html;&lt;/P&gt;&lt;P&gt;ods graphics / reset imagemap=on;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title 'Stacked Grouped BarLine Chart';&lt;/P&gt;&lt;P&gt;proc sgplot data=groupedData;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format xaxis $xaxis. linevalue percent.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; vbar xaxis / response=BarValue group=Group missing url=url;&lt;/P&gt;&lt;P&gt;&amp;nbsp; vline xaxis / response=LineValue group=Group missing y2axis break markers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; markerattrs=(symbol=circlefilled size=5) lineattrs=(pattern=solid);&lt;/P&gt;&lt;P&gt;&amp;nbsp; xaxis display=(noticks nolabel) discreteorder=data;&lt;/P&gt;&lt;P&gt;&amp;nbsp; yaxis offsetmin=0 values=(0 to 14000 by 2000) grid;&lt;/P&gt;&lt;P&gt;&amp;nbsp; y2axis offsetmin=0 values=(0 to 0.07 by 0.01);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods html close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The key is how to create the blank spaces between the groups.&amp;nbsp; Using a missing value or blank works if you have only one.&amp;nbsp; With two, they get combined into one value on the x axis.&amp;nbsp; So, I replaced the two missing values in your spreadsheet with the strings "Miss1" and "Miss2".&amp;nbsp; You can use any distinct strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I created a format and formatted each of these strings to a &lt;STRONG&gt;unique invisible string using the non-breaking space 'A0'x&lt;/STRONG&gt;.&amp;nbsp; This space does not get stripped out, and so I made one with a nbsp on each side of a 10 character string, and another with a third nbsp in the middle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also changed your structure from a multi column to a grouped format mainly to get the stacked bar chart.&amp;nbsp; VLINE statement uses BREAK option to break each line at the missing value.&amp;nbsp; Add URL column to data set and set it on the url option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sanjay Matange Files attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 18:47:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/108105#M4035</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2012-08-30T18:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked, Grouped Bar Chart with Multiple Y2-Axis lines</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/108106#M4036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjay,&lt;/P&gt;&lt;P&gt;You need to use the "advanced editor" to attach file. Would you also please attach the sas dataset?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 18:53:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/108106#M4036</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-08-30T18:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked, Grouped Bar Chart with Multiple Y2-Axis lines</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/108107#M4037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I signify this post has been answered?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 18:56:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/108107#M4037</guid>
      <dc:creator>CPAZ</dc:creator>
      <dc:date>2012-08-30T18:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked, Grouped Bar Chart with Multiple Y2-Axis lines</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/108108#M4038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A couple of buttons labelled something like "Useful Reply" and Correct Answer" should appear at the bottom of each new post; all you &lt;EM&gt;should&lt;/EM&gt; then need to do is click the relevant one - but having said that, I'm not seeing them here, and I don't know why not.&amp;nbsp; Can anybody help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 13:52:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/108108#M4038</guid>
      <dc:creator>DavidQ_R</dc:creator>
      <dc:date>2012-08-31T13:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked, Grouped Bar Chart with Multiple Y2-Axis lines</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/108109#M4039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The "helpful answer" and "correct answer" buttons are only available to the Original Poster after login.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 14:02:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/108109#M4039</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-08-31T14:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked, Grouped Bar Chart with Multiple Y2-Axis lines</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/303417#M10710</link>
      <description>&lt;P&gt;Hello Sunjay,&lt;/P&gt;&lt;P&gt;I did as your instruction. But i strugged on Error transcode as picutre below.&lt;/P&gt;&lt;P&gt;And i try to use another Non-space-breaking but it's not work.&lt;/P&gt;&lt;P&gt;Would you mind to suggest?&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13039iA082C7D033FB5D61/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="ScreenHunter_135 Oct. 09 11.03.jpg" title="ScreenHunter_135 Oct. 09 11.03.jpg" /&gt;</description>
      <pubDate>Sun, 09 Oct 2016 03:22:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Stacked-Grouped-Bar-Chart-with-Multiple-Y2-Axis-lines/m-p/303417#M10710</guid>
      <dc:creator>kritima</dc:creator>
      <dc:date>2016-10-09T03:22:25Z</dc:date>
    </item>
  </channel>
</rss>

