<?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 colors SGPLOT for a 100% Stacked Bar Chart in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Changing-colors-SGPLOT-for-a-100-Stacked-Bar-Chart/m-p/517901#M3456</link>
    <description>&lt;P&gt;Styleattrs worked! Thank you so much!&lt;/P&gt;</description>
    <pubDate>Sun, 02 Dec 2018 19:33:00 GMT</pubDate>
    <dc:creator>sandre42</dc:creator>
    <dc:date>2018-12-02T19:33:00Z</dc:date>
    <item>
      <title>Changing colors SGPLOT for a 100% Stacked Bar Chart</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Changing-colors-SGPLOT-for-a-100-Stacked-Bar-Chart/m-p/516819#M3237</link>
      <description>&lt;P&gt;I am new to SAS as an undergraduate student. After an hour or so of trying variations of code that I searched here on SAS Support, I cannot get any of them to work to change the colors on my 100% Stacked Bar Chart. Can somebody please help? Here is the code that we were provided to use for the chart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc freq data=project.studentdrink;&lt;BR /&gt;table dalc*studytime/out=freq outpct;&lt;BR /&gt;quit;&lt;BR /&gt;proc sgplot data=freq pctlevel=group;&lt;BR /&gt;vbar Dalc /&lt;BR /&gt;response=studytime&lt;BR /&gt;group=studytime&lt;BR /&gt;datalabel seglabel seglabelattrs=(size=8) stat=percent;&lt;BR /&gt;title '100% Stacked Bar Chart for Student Workday Alcohol Consumption by Study Time (n=395)';&lt;BR /&gt;yaxis label = 'Workday Alcohol Consumption by Study Time';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fillattrs works within the code when I try it, although I have only been able to change it to one solid color and I need multiple colors if that's possible. Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 18:31:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Changing-colors-SGPLOT-for-a-100-Stacked-Bar-Chart/m-p/516819#M3237</guid>
      <dc:creator>sandre42</dc:creator>
      <dc:date>2018-11-28T18:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Changing colors SGPLOT for a 100% Stacked Bar Chart</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Changing-colors-SGPLOT-for-a-100-Stacked-Bar-Chart/m-p/516820#M3238</link>
      <description>&lt;P&gt;Have you tried to use the STYLEATTRS statement in PROC SGPLOT?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 18:33:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Changing-colors-SGPLOT-for-a-100-Stacked-Bar-Chart/m-p/516820#M3238</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-11-28T18:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Changing colors SGPLOT for a 100% Stacked Bar Chart</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Changing-colors-SGPLOT-for-a-100-Stacked-Bar-Chart/m-p/516838#M3240</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/248848"&gt;@sandre42&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;has you covered. Check out &lt;A title="Assigning graph style attributes easily!" href="https://blogs.sas.com/content/sgf/2014/05/30/assigning-graph-style-attributes-easily/" target="_self"&gt;this article&lt;/A&gt; for the use of STYLEATTRS.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 19:28:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Changing-colors-SGPLOT-for-a-100-Stacked-Bar-Chart/m-p/516838#M3240</guid>
      <dc:creator>joeFurbee</dc:creator>
      <dc:date>2018-11-28T19:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Changing colors SGPLOT for a 100% Stacked Bar Chart</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Changing-colors-SGPLOT-for-a-100-Stacked-Bar-Chart/m-p/517901#M3456</link>
      <description>&lt;P&gt;Styleattrs worked! Thank you so much!&lt;/P&gt;</description>
      <pubDate>Sun, 02 Dec 2018 19:33:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Changing-colors-SGPLOT-for-a-100-Stacked-Bar-Chart/m-p/517901#M3456</guid>
      <dc:creator>sandre42</dc:creator>
      <dc:date>2018-12-02T19:33:00Z</dc:date>
    </item>
  </channel>
</rss>

