<?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: How does one change colors of bars SGPANEL (vbar)? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-does-one-change-colors-of-bars-SGPANEL-vbar/m-p/700679#M20757</link>
    <description>&lt;P&gt;DON'T USE&amp;nbsp;&amp;nbsp;&lt;BR /&gt;fillattrs=(color=limegreen)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics/ attrpriority=color;
proc sgpanel data=sashelp.heart;
styleattrs datacolors=(green red) datacontrastcolors=(green red);
panelby status sex;
rowaxis label="Percent" grid max=100.0;
vbar  bp_status / group=sex groupdisplay=cluster
filltype=solid
dataskin=gloss name='ins'
fill datalabel;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="x.png" style="width: 662px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51897i2A10D597243AF829/image-size/large?v=v2&amp;amp;px=999" role="button" title="x.png" alt="x.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 21 Nov 2020 12:29:31 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2020-11-21T12:29:31Z</dc:date>
    <item>
      <title>How does one change colors of bars SGPANEL (vbar)?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-does-one-change-colors-of-bars-SGPANEL-vbar/m-p/700638#M20756</link>
      <description>&lt;P&gt;I am having trouble with changing the colors of certain bars by variable in SGPANEL. I want the response variable "Yes" to be one color and "No" to be another color. I am using SAS University. I want the colors limegreen and darkcyan. Here is my code and a screenshot:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;title2 h=12pt'Percent of Americans Aged 20 and Older Who Adhered to Cholesterol Screening Guidelines by Insurance&lt;BR /&gt;and Routine Care Provider, 2011-2012';&lt;BR /&gt;proc sgpanel data=nh.crossfinal;&lt;BR /&gt;styleattrs datacolors=(limegreen darkcyan);&lt;BR /&gt;panelby cho5years care;&lt;BR /&gt;rowaxis label="Percent" grid max=100.0;&lt;BR /&gt;vbar ins / response=percent&lt;BR /&gt;filltype=solid&lt;BR /&gt;dataskin=gloss name='ins'&lt;BR /&gt;fill datalabel&lt;BR /&gt;fillattrs=(color=limegreen);&lt;BR /&gt;label ins='Insurance'&lt;BR /&gt;care='Routine Care'&lt;BR /&gt;cho5years='Cholesterol Screening';&lt;BR /&gt;format ins decision. care decision.;&lt;BR /&gt;run;&lt;BR /&gt;title2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-11-20 at 19.25.49.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51895iA844FAA442E475AD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2020-11-20 at 19.25.49.png" alt="Screen Shot 2020-11-20 at 19.25.49.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2020 02:27:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-does-one-change-colors-of-bars-SGPANEL-vbar/m-p/700638#M20756</guid>
      <dc:creator>admendez03</dc:creator>
      <dc:date>2020-11-21T02:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: How does one change colors of bars SGPANEL (vbar)?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-does-one-change-colors-of-bars-SGPANEL-vbar/m-p/700679#M20757</link>
      <description>&lt;P&gt;DON'T USE&amp;nbsp;&amp;nbsp;&lt;BR /&gt;fillattrs=(color=limegreen)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics/ attrpriority=color;
proc sgpanel data=sashelp.heart;
styleattrs datacolors=(green red) datacontrastcolors=(green red);
panelby status sex;
rowaxis label="Percent" grid max=100.0;
vbar  bp_status / group=sex groupdisplay=cluster
filltype=solid
dataskin=gloss name='ins'
fill datalabel;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="x.png" style="width: 662px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51897i2A10D597243AF829/image-size/large?v=v2&amp;amp;px=999" role="button" title="x.png" alt="x.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2020 12:29:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-does-one-change-colors-of-bars-SGPANEL-vbar/m-p/700679#M20757</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-11-21T12:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: How does one change colors of bars SGPANEL (vbar)?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-does-one-change-colors-of-bars-SGPANEL-vbar/m-p/702596#M20778</link>
      <description>&lt;P&gt;Here's an example where I use an attribute map to control colors in sgpanel:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2019/04/15/does-low-unemployment-mean-there-are-job-openings/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2019/04/15/does-low-unemployment-mean-there-are-job-openings/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 18:21:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-does-one-change-colors-of-bars-SGPANEL-vbar/m-p/702596#M20778</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2020-11-30T18:21:01Z</dc:date>
    </item>
  </channel>
</rss>

