<?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: Aligning group values in Gchart hbar in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118287#M4510</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the following simple example work ok for you, and produce group axis values vertical and horizontal as expected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;axis1 value=(angle=90);&lt;/P&gt;&lt;P&gt;axis2 value=(angle=0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gchart data=sashelp.shoes &lt;/P&gt;&lt;P&gt; (where=(&lt;/P&gt;&lt;P&gt;&amp;nbsp; subsidiary in ('Khartoum' 'Luanda') and &lt;/P&gt;&lt;P&gt;&amp;nbsp; product in ('Boot' 'Sandal' 'Slipper')));&lt;/P&gt;&lt;P&gt;hbar product / type=sum sumvar=sales group=subsidiary gaxis=axis1;&lt;/P&gt;&lt;P&gt;hbar product / type=sum sumvar=sales group=subsidiary gaxis=axis2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that works, then you might try paring down your goptions &amp;amp; axis options to the bare minimum in your code, and see if that fixes the problem, and then work from there.&amp;nbsp; Also, you might try device=png rather than device=activex, to see if this is one of those scenarios where an option might be partially or differently supported in activex.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jan 2013 14:06:19 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2013-01-08T14:06:19Z</dc:date>
    <item>
      <title>Aligning group values in Gchart hbar</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118285#M4508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using the following, the values of the group variable (dimension) appears vertically and could not been displayed properly. How can I turn the to appear horizontal?&lt;/P&gt;&lt;P&gt;I tried rotate with different values in the axis statement but no success. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goptions&amp;nbsp;&amp;nbsp; hpos=67 vsize=&amp;nbsp; 8.4200&amp;nbsp; inches&amp;nbsp; hsize= 8.6 inches&amp;nbsp; ftext="times" htext=1.5 ctext=navy HORIGIN=0.0 IN&amp;nbsp; device=activex;&lt;/P&gt;&lt;P&gt;axis1&amp;nbsp; noplane order=(2 to 5 by 1)&amp;nbsp; label=(font=times&amp;nbsp; '') style=0&amp;nbsp; major=none minor=none value=none;&lt;/P&gt;&lt;P&gt;axis2 color=red NOPLANE&amp;nbsp; VALUE=(ROTATE=0 ) label=none SPLIT="*" style=0 ;&lt;/P&gt;&lt;P&gt;axis3 color=black NOPLANE label=(font=simulate '' ) SPLIT="*" style=0;&lt;/P&gt;&lt;P&gt;proc gchart data=KukuAppend;&lt;/P&gt;&lt;P&gt;hbar Entity&amp;nbsp; / descending mean group=dimension patternid=midpoint sumvar=_Engineering2012 name="Height" raxis=axis1&amp;nbsp; gaxis=axis2 maxis=axis3 GSPACE=0.1 SPACE=0.1 ;&lt;/P&gt;&lt;P&gt;format _Engineering2012 5.2;&lt;/P&gt;&lt;P&gt;pattern1&amp;nbsp; c=orange;&lt;/P&gt;&lt;P&gt;pattern2&amp;nbsp; c=navy;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 11:18:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118285#M4508</guid>
      <dc:creator>EzPaste</dc:creator>
      <dc:date>2013-01-08T11:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning group values in Gchart hbar</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118286#M4509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please provide some sample data.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 13:49:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118286#M4509</guid>
      <dc:creator>AncaTilea</dc:creator>
      <dc:date>2013-01-08T13:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning group values in Gchart hbar</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118287#M4510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the following simple example work ok for you, and produce group axis values vertical and horizontal as expected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;axis1 value=(angle=90);&lt;/P&gt;&lt;P&gt;axis2 value=(angle=0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gchart data=sashelp.shoes &lt;/P&gt;&lt;P&gt; (where=(&lt;/P&gt;&lt;P&gt;&amp;nbsp; subsidiary in ('Khartoum' 'Luanda') and &lt;/P&gt;&lt;P&gt;&amp;nbsp; product in ('Boot' 'Sandal' 'Slipper')));&lt;/P&gt;&lt;P&gt;hbar product / type=sum sumvar=sales group=subsidiary gaxis=axis1;&lt;/P&gt;&lt;P&gt;hbar product / type=sum sumvar=sales group=subsidiary gaxis=axis2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that works, then you might try paring down your goptions &amp;amp; axis options to the bare minimum in your code, and see if that fixes the problem, and then work from there.&amp;nbsp; Also, you might try device=png rather than device=activex, to see if this is one of those scenarios where an option might be partially or differently supported in activex.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 14:06:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118287#M4510</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2013-01-08T14:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning group values in Gchart hbar</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118288#M4511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code works well for few bars but not with more 6-7 values in the vertical axis. the values appear vertical and are unreadable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried also other devices but other issues arise&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 22:42:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118288#M4511</guid>
      <dc:creator>EzPaste</dc:creator>
      <dc:date>2013-01-08T22:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning group values in Gchart hbar</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118289#M4512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post up an image, or a Web url link, to an example of a graph that is like the one you're wanting?&lt;/P&gt;&lt;P&gt;(If so, then I will write some example code to produce a graph like that...)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2013 13:29:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118289#M4512</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2013-01-09T13:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning group values in Gchart hbar</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118290#M4513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to achieve something like that (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.ezpaste.net/ftp/Sample.png"&gt;http://www.ezpaste.net/ftp/Sample.png&lt;/A&gt;&lt;SPAN&gt;) , even much less fancy but readable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 21:15:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118290#M4513</guid>
      <dc:creator>EzPaste</dc:creator>
      <dc:date>2013-01-10T21:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning group values in Gchart hbar</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118291#M4514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With&amp;nbsp; SAS 9.3 SGPLOT procedure you can get a reasonable facsimile.&amp;nbsp; You could even do the overlapping bars.&amp;nbsp; Do you have SAS 9.3?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="BarGapGroup.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/2919_BarGapGroup.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 23:00:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118291#M4514</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2013-01-10T23:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning group values in Gchart hbar</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118292#M4515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks very nice. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can it be achieved with older versions of sas as 9.0?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was thinking about annotate but not sure how to handle that complex feature. Could you help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 06:54:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118292#M4515</guid>
      <dc:creator>EzPaste</dc:creator>
      <dc:date>2013-01-11T06:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning group values in Gchart hbar</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118293#M4516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can get part of the way there.&amp;nbsp; The key is to insert unique blanks into the list of companies.&amp;nbsp; Each unique blank is made up of a leading and trailing nsbp, and increasing number of blanks.&amp;nbsp; To retain data order, the companies have to be indexed by numeric id, and then formatted to show company name.&amp;nbsp; Here is the graph and code.&amp;nbsp; I am sure it can be improved upon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One problem is the "0.0" stat shown for the gaps.&amp;nbsp; Maybe you can use Annotate to label the bars near the top, and not label the gaps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="2929" alt="BarBreakGroupGChart.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/2929_BarBreakGroupGChart.png" /&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt;&amp;nbsp; value company&lt;BR /&gt;&amp;nbsp; 1 = 'Company 1'&lt;BR /&gt;&amp;nbsp; 2 = 'Company 2'&lt;BR /&gt;&amp;nbsp; 3 = 'Company 3'&lt;BR /&gt;&amp;nbsp; 4 = 'A0'x ' ' 'A0'x&lt;BR /&gt;&amp;nbsp; 5 = 'Company 4'&lt;BR /&gt;&amp;nbsp; 6 = 'Company 5'&lt;BR /&gt;&amp;nbsp; 7 = 'Company 6'&lt;BR /&gt;&amp;nbsp; 8 = 'Company 7'&lt;BR /&gt;&amp;nbsp; 9 = 'Company 8'&lt;BR /&gt;&amp;nbsp; 10 = 'A0'x '&amp;nbsp; ' 'A0'x&lt;BR /&gt;&amp;nbsp; 11 = 'Company 9'&lt;BR /&gt;&amp;nbsp; 12 = 'Company 10';&lt;BR /&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data companies;&lt;BR /&gt;&amp;nbsp; length Type $12;&lt;BR /&gt;&amp;nbsp; format i Company.;&lt;BR /&gt;&amp;nbsp; drop r1 r2;&lt;BR /&gt;&amp;nbsp; format response 3.1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do i=1 to 12;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; r1=2+2*ranuni(2);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; r2=3+2*ranuni(2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if i in (4 10) then do; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r1=.; r2=.;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Type="Other"; Response=r1;output;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Type="Engineering"; Response=r2;output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;goptions reset=all device=png vsize=6in hsize=4in htext=8pt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gsfname=graphout gsfmode=replace noimageprint;&lt;BR /&gt;filename graphout 'C:\Work\Blogs\Communities\images\BarBreakGroupGChart.png';&lt;BR /&gt;axis1 label=none value=none major=none minor=none;&lt;BR /&gt;axis2 label=none major=none minor=none;&lt;/P&gt;&lt;P&gt;proc gchart data=companies;&lt;BR /&gt;&amp;nbsp; hbar type / sumvar=response group=i subgroup=type &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxis=axis1 raxis=axis1 gaxis=axis2 outside=sum sumlabel=none;&lt;BR /&gt;&amp;nbsp; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jan 2013 06:20:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118293#M4516</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2013-01-12T06:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning group values in Gchart hbar</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118294#M4517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm learning the sgplot procedure which looks great. Trying to achieve similar to your chart but &lt;STRONG&gt;always getting stacked bar instead of sideByside&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=a001DistributionYouAndOthers ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; hbar&amp;nbsp; dimension/ STAT= mean group=entity&amp;nbsp;&amp;nbsp; response=PctN_10&amp;nbsp; dataskin=pressed&amp;nbsp; DATALABEL&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Abe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 18:28:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118294#M4517</guid>
      <dc:creator>EzPaste</dc:creator>
      <dc:date>2013-01-16T18:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning group values in Gchart hbar</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118295#M4518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using SGPLOT, you have to use GROUPDISPLAY=CLUSTER option with HBAR to get the side-by-side bars:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=a001DistributionYouAndOthers ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; hbar&amp;nbsp; dimension/ STAT= mean group=entity&amp;nbsp;&amp;nbsp; response=PctN_10&amp;nbsp; dataskin=pressed&amp;nbsp; DATALABEL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GROUPDISPLAY=CLUSTER;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 19:12:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118295#M4518</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2013-01-16T19:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning group values in Gchart hbar</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118296#M4519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to control the order of the bars and the way the categories appear on the axis as the split=* does not seem to work with sgplot?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jan 2013 19:46:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118296#M4519</guid>
      <dc:creator>EzPaste</dc:creator>
      <dc:date>2013-01-19T19:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning group values in Gchart hbar</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118297#M4520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By default, SGPLOT will order the categories alphabetically.&amp;nbsp; But since we are introducing special categoreis for the gaps, we must request SGPLOT to display the categories in data order.&amp;nbsp; Here is the SGPLOT program I used to create the graph. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE: &lt;/STRONG&gt; You will need to look up the SGPLOT doc.&amp;nbsp; Options you are familiar with in SAS/GRAPH procedures like GCHART will not translate over to the SG procedures. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*--Create the data--*/&lt;BR /&gt;data companies;&lt;BR /&gt;&amp;nbsp; length Company Type $12;&lt;BR /&gt;&amp;nbsp; drop i r1 r2;&lt;BR /&gt;&amp;nbsp; format response 3.1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do i=1 to 22;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Company="Company " || put(i, 2.);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; r1=2+2*ranuni(2);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; r2=3+2*ranuni(2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if i eq 4 then Company='. .';&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if i eq 10 then Company='.&amp;nbsp; .'; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if i eq 13 then Company='.&amp;nbsp;&amp;nbsp; .';&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if i eq 18 then Company='.&amp;nbsp;&amp;nbsp;&amp;nbsp; .';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if i in (4 10 13 18) then do; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r1=.; r2=.;&lt;BR /&gt; end;&lt;/P&gt;&lt;P&gt;Company=translate(Company, 'A0'x, '.');&lt;BR /&gt; Type="Other"; Response=r1;output;&lt;BR /&gt; Type="Engineering"; Response=r2;output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/*--Create the graph--*/&lt;/P&gt;&lt;P&gt;ods graphics / reset noscale width=3in height=6in imagename='BarGapGroup';&lt;BR /&gt;proc sgplot data=companies;&lt;BR /&gt;&amp;nbsp; hbar company / response=response group=type groupdisplay=cluster datalabel &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataskin=sheen datalabelattrs=(size=5);&lt;BR /&gt;&amp;nbsp; yaxis display=(nolabel noticks) discreteorder=data valueattrs=(size=6);&lt;BR /&gt;&amp;nbsp; xaxis display=none;&lt;BR /&gt;&amp;nbsp; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jan 2013 20:38:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118297#M4520</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2013-01-19T20:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning group values in Gchart hbar</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118298#M4521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I'm trying to achieve the same in SAS9.2 I realise i can't use the GROUPDISPLAY=CLUSTER option there. Is there a work around to do the same using proc sgplot?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;RK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 04:17:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Aligning-group-values-in-Gchart-hbar/m-p/118298#M4521</guid>
      <dc:creator>RKNC</dc:creator>
      <dc:date>2014-04-03T04:17:58Z</dc:date>
    </item>
  </channel>
</rss>

