<?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: hbar: legend without subgroup in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/hbar-legend-without-subgroup/m-p/97570#M3657</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works. Thanx a lot. And I agree what you say about the legend being twice the information I already have on the maxis. Though I told him this the customer wants the legend withoug the values written on the maxis. That's life.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, the colored bars become a problem when they change in number - 5 instead of 3. But we have to use the company's colors instead of SAS standrad colors. It would be great if I could say: use any shade of blue for whatever number of bars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;&lt;P&gt;Eva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Dec 2012 14:13:59 GMT</pubDate>
    <dc:creator>Eva</dc:creator>
    <dc:date>2012-12-12T14:13:59Z</dc:date>
    <item>
      <title>hbar: legend without subgroup</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/hbar-legend-without-subgroup/m-p/97568#M3655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the sas help I read that there is no legend displayed in a hbar graph when I don't use subgroup. My customer nonetheless wants one &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; How can I do it? Here's my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;patternid1 value=solid color=red;&lt;/P&gt;&lt;P&gt;patternid2 value=solid color=blue;&lt;/P&gt;&lt;P&gt;patternid3 value=solid color=green;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;legend1 label=none position=(bottom center outside);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gchart data = mydata;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vbar year / sumvar = mysum&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; group = mygroup&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type = sum&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; discrete&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; patternid = midpoint&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; legend = legend1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The legend here is not displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;P&gt;Eva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 13:51:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/hbar-legend-without-subgroup/m-p/97568#M3655</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2012-12-12T13:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: hbar: legend without subgroup</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/hbar-legend-without-subgroup/m-p/97569#M3656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want a legend, I think you can use subgroup=year, rather than patternid=midpoint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not a big fan of coloring each bar differently, for the sake of coloring each bar differently though. Make sure your chef realizes that the legend will be redundant with the labels on the maxis (they will both be showing the year).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 13:55:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/hbar-legend-without-subgroup/m-p/97569#M3656</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2012-12-12T13:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: hbar: legend without subgroup</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/hbar-legend-without-subgroup/m-p/97570#M3657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works. Thanx a lot. And I agree what you say about the legend being twice the information I already have on the maxis. Though I told him this the customer wants the legend withoug the values written on the maxis. That's life.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, the colored bars become a problem when they change in number - 5 instead of 3. But we have to use the company's colors instead of SAS standrad colors. It would be great if I could say: use any shade of blue for whatever number of bars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;&lt;P&gt;Eva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 14:13:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/hbar-legend-without-subgroup/m-p/97570#M3657</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2012-12-12T14:13:59Z</dc:date>
    </item>
  </channel>
</rss>

