<?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: Changing Bar Colors in PROC SG PLOT in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Changing-Bar-Colors-in-PROC-SG-PLOT/m-p/704596#M26157</link>
    <description>&lt;P&gt;To change all bars to use the same color use the FILLATTRS option on the VBAR statement.&lt;/P&gt;
&lt;PRE&gt;VBAR StateCd / Response=colpercent&lt;BR /&gt;		GROUPDISPLAY=cluster&lt;BR /&gt;		DATALABEL = ColPercent&lt;BR /&gt;               Fillattrs=(color=lightsalmon)&lt;BR /&gt; ;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; Your Styleattrs requires at least one GROUP= variable in a plot statement&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-eDocBody"&gt;
&lt;DIV class="xis-refProc"&gt;
&lt;DIV class="xis-procStatement"&gt;
&lt;DIV class="xis-procStatementSyntax"&gt;
&lt;DIV class="xis-syntaxDescription"&gt;
&lt;DIV class="xis-optionalArgGroup"&gt;
&lt;DIV id="p01yqbbadjhpuwn1sspovn6okc3l" class="xis-argDescriptionPair"&gt;
&lt;DIV class="xis-argumentDescription"&gt;
&lt;TABLE class="xis-summary"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="xis-requirement"&gt;Requirement&lt;/TD&gt;
&lt;TD class="xis-summaryText"&gt;For this option to have an effect, at least one plot statement in the procedure must specify the GROUP= option.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Wed, 09 Dec 2020 00:05:27 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-12-09T00:05:27Z</dc:date>
    <item>
      <title>Changing Bar Colors in PROC SG PLOT</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Changing-Bar-Colors-in-PROC-SG-PLOT/m-p/704594#M26156</link>
      <description>&lt;P&gt;HI there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having some difficulty changing the bar colors on my graphs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;TITLE1 "Hypertension-Related Death Rates by State";&lt;BR /&gt;FOOTNOTE 'Created by Me';&lt;BR /&gt;PROC SGPLOT DATA = Hypertension.StatePercents;&lt;BR /&gt;		VBAR StateCd / Response=colpercent&lt;BR /&gt;							  GROUPDISPLAY=cluster&lt;BR /&gt;							  DATALABEL = ColPercent&lt;BR /&gt;							  ;&lt;BR /&gt;							  &lt;BR /&gt;	REFLINE 1.8&lt;BR /&gt;		/ AXIS = Y&lt;BR /&gt;		  LABELLOC = inside&lt;BR /&gt;		  LINEATTRS=(COLOR = INDIGO PATTERN = SHORTDASH)&lt;BR /&gt;		  LABEL = 'National Average = 1.8';&lt;BR /&gt;		  &lt;BR /&gt;	XAXIS LABEL = 'State Code'&lt;BR /&gt;		  LABELATTRS= (WEIGHT = BOLD)&lt;BR /&gt;		  ;&lt;BR /&gt;		  &lt;BR /&gt;	STYLEATTRS DATACOLORS= (LIGHTSALMON)&lt;BR /&gt;			   DATACONTRASTCOLORS= (BLACK)&lt;BR /&gt;			   ;&lt;BR /&gt;			   &lt;BR /&gt;	YAXIS LABEL = 'PERCENT'&lt;BR /&gt;		  OFFSETMIN= 0&lt;BR /&gt;		  LABELATTRS= (WEIGHT = BOLD)&lt;BR /&gt;		  VALUES = (0,1,2,3,4)&lt;BR /&gt;		  GRID;&lt;BR /&gt;RUN;&lt;BR /&gt;TITLE;&lt;BR /&gt;FOOTNOTE;&lt;/PRE&gt;&lt;P&gt;my output is still using blue bars instead of salmon, any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 15:07:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Changing-Bar-Colors-in-PROC-SG-PLOT/m-p/704594#M26156</guid>
      <dc:creator>Allie_Haun</dc:creator>
      <dc:date>2020-12-10T15:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Bar Colors in PROC SG PLOT</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Changing-Bar-Colors-in-PROC-SG-PLOT/m-p/704596#M26157</link>
      <description>&lt;P&gt;To change all bars to use the same color use the FILLATTRS option on the VBAR statement.&lt;/P&gt;
&lt;PRE&gt;VBAR StateCd / Response=colpercent&lt;BR /&gt;		GROUPDISPLAY=cluster&lt;BR /&gt;		DATALABEL = ColPercent&lt;BR /&gt;               Fillattrs=(color=lightsalmon)&lt;BR /&gt; ;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; Your Styleattrs requires at least one GROUP= variable in a plot statement&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-eDocBody"&gt;
&lt;DIV class="xis-refProc"&gt;
&lt;DIV class="xis-procStatement"&gt;
&lt;DIV class="xis-procStatementSyntax"&gt;
&lt;DIV class="xis-syntaxDescription"&gt;
&lt;DIV class="xis-optionalArgGroup"&gt;
&lt;DIV id="p01yqbbadjhpuwn1sspovn6okc3l" class="xis-argDescriptionPair"&gt;
&lt;DIV class="xis-argumentDescription"&gt;
&lt;TABLE class="xis-summary"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="xis-requirement"&gt;Requirement&lt;/TD&gt;
&lt;TD class="xis-summaryText"&gt;For this option to have an effect, at least one plot statement in the procedure must specify the GROUP= option.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 09 Dec 2020 00:05:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Changing-Bar-Colors-in-PROC-SG-PLOT/m-p/704596#M26157</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-12-09T00:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Bar Colors in PROC SG PLOT</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Changing-Bar-Colors-in-PROC-SG-PLOT/m-p/704597#M26158</link>
      <description>Specify the color?&lt;BR /&gt;&lt;BR /&gt;	VBAR StateCd / Response=colpercent&lt;BR /&gt;							  GROUPDISPLAY=cluster&lt;BR /&gt;							  DATALABEL = ColPercent&lt;BR /&gt;                                                          FILL&lt;BR /&gt;                                                          FILLATTRS=(color = "cxffa07a")&lt;BR /&gt;							  ;&lt;BR /&gt;&lt;BR /&gt;I just googled the code for light salmon so you may need to change that. The CX should be in front if you're using Hex codes.&lt;BR /&gt;Otherwise, specify your colour using any of these specifications:&lt;BR /&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=graphref&amp;amp;docsetTarget=p0edl20cvxxmm9n1i9ht3n21eict.htm&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=graphref&amp;amp;docsetTarget=p0edl20cvxxmm9n1i9ht3n21eict.htm&amp;amp;locale=en&lt;/A&gt;</description>
      <pubDate>Wed, 09 Dec 2020 00:05:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Changing-Bar-Colors-in-PROC-SG-PLOT/m-p/704597#M26158</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-12-09T00:05:32Z</dc:date>
    </item>
  </channel>
</rss>

